in reply to Re^5: This regexp made simpler
in thread This regexp made simpler
I prefer a correct solution that contains some repetition to an incorrect solution any time. There are ways to make .*? work correctly, but ...I agree that an incorrect solution doesn't make sense, but is it incorrect? .*?Zwould match the shortest possible sequence of characters up to, but not including, the letter Z. Could you give an example where this would fail?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: This regexp made simpler
by moritz (Cardinal) on Apr 26, 2010 at 11:36 UTC | |
by rovf (Priest) on Apr 26, 2010 at 12:06 UTC | |
by rubasov (Friar) on Apr 26, 2010 at 14:31 UTC |