For example, if I try to match 'w in the input line
edward woodward
two words w in the second word must be matched, not one in the first word.
I have a suspicion that the solution may include a “negative appearance”, but simply cannot get any working solution.
(I work with Objective-C and regex replaces methods with NSMutableString, but I would also be happy to hear about solutions for any regex implementation.)
source
share