Reputation: 71
Using regexpal.com, I need to find de word banana in a sequence of alphabet characters that also do not include the word ana.
I have tried the following banana((?!ana).)*
and it does not work in the following sentence alfabetwithsbananaandnotana
It highlights everything from semana until ana. I am new with regex, can anyone help out?
Upvotes: 1
Views: 80