It looks like you need a look-ahead assersion:
EDIT: Well, I misread the question (paid too much attention to the title). A simple /a/ and !/a.*b/ (++1008541) or /^[^a]*a+[^b]*$/ should be enough.
In reply to Re: Find all strings containing "a" characters, that are not followed by "b" characters.
by aitap
in thread Find all strings containing "a" characters, that are not followed by "b" characters.
by Kyshtynbai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |