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
Try this:
/\b(?!girl)\w*friend\b/ig