I am a newbie and have been struggling the last hour to figure this out. Let's say you have these strings:
baa cec haw heef baas bat jackaay
I want to match all the words which don't have two aa's consecutively, so in the above it will match cec
, haw
, heef
, bat
.
This is what i have done so far, but it's completely wrong i can sense :D
\w*[^\s]*[^a\s]{2}[^\s]*\w*