in reply to Search operator and * quantifier
The overriding principle of the regex engine is that it searches for the left-most possible match of the regex. And the left-most possible match for your regex is the empty string (zero digits) at the start of the string.
If you don't want that to happen, use the + quantifier instead (one or more matches).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search operator and * quantifier
by Anonymous Monk on Jun 20, 2012 at 16:50 UTC | |
|
Re^2: Search operator and * quantifier
by gg48gg (Sexton) on Jun 21, 2012 at 04:39 UTC | |
by moritz (Cardinal) on Jun 21, 2012 at 07:44 UTC |