in reply to Why is this regex greedy?
The regex engine prefers leftmost, longest matches. Nothing in your regex prevents it from matching everything between the first slash and the end of line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is this regex greedy?
by pbeckingham (Parson) on Jul 02, 2004 at 20:34 UTC | |
by duff (Parson) on Jul 02, 2004 at 20:55 UTC |