Update: Obviously, I should've tested my theory before shooting off my mouth. ww gave it a try (nice catch!) and didn't see the problem, when I tried, I couldn't reproduce either.
The problem is that you're asking for "one or more one or more digits". You either mean one or more digits, or one or more digits followed by a '+':
/(\d+\.\d+)/oi; # One or more digits /(\d+\+\.\d+\+)/oi; # One or more digits with '+'
Since you mention greediness, you might mean to not take too many items from the string. However, since you're taking only digits and have a literal '.' between them, I don't know what you'd really mean. (\d+? doesn't make any sense, unless it were something like \d+?7, for example.)
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Perl Complains of Nested Quantifiers
by roboticus
in thread Perl Complains of Nested Quantifiers
by sunmaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |