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$/
In reply to Re: A Regex simple Question
by moritz
in thread A Regex simple Question
by pysome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |