Regex repetition is always non-greedy

Hi!

I’m getting started with Odin and I’m currently working with regexes. I think I’ve found a bug where repetitions (.{x,y}) are never greedy.

Here is a code example. My expectation that it should be greedy by default comes from this line in the regex docs:

This package also supports the non-greedy variants of the repeating and optional specifiers by appending a ? to them.

Albeit, here “repeating specifier” could mean * and + only; I’m a bit unsure.

Moreover, most other regex engines out there behave this way (here’s an example on regex101 with the Golang engine.)

Thanks, and have a nice day!