in reply to A Regex simple Question
This means that the (?!ab) will always find a position where the next position is not ab.
Knowing this, the solution is not so hard:
/^a(?!.*ab).*b$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A Regex simple Question
by ikegami (Patriarch) on Sep 06, 2007 at 16:11 UTC | |
by moritz (Cardinal) on Sep 06, 2007 at 16:36 UTC |