with negative lookahead./a(?!b)/
And yes, your regexp looks rather OK, except I would drop a few \b anchors:
or combined:/a\b|a[^b]/
Will that do?/a(\b|[^b])/
In reply to Re: Find all strings containing "a" characters, that are not followed by "b" characters.
by bart
in thread Find all strings containing "a" characters, that are not followed by "b" characters.
by Kyshtynbai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |