How would I construct a regular expression to find all words that end in a string but don\'t begin with a string?
e.g. Find all words that end in \'friend\' that don
This may work:
\w*(?
you could also try
\w*(? if you wanted to match words like befriended or boyfriends.
befriended
boyfriends
I'm not sure if ? is available in all regex versions, but this expression worked in Expersso (which I believe is .NET).
? is available in all regex versions, but this expression worked in Expersso (which I believe is .NET).