For putting ' before s in all Jeffs I tested these two following little different regexes and I got different results by PERL as follows :
perl -pe "s/(?<=\bJeff)(?=s)\b/'/g" myfile.txt
What is difference between (?<=\bJeff)(?=s\b) and \b(?<=\Jeff)(?=s)\b ?
I mean putting \b inside/outside lookaround.
When you put
\bbefore the lookaround, the portion of the input matched by the lookaround is not skipped over when matching\b. This means it has to be matched immediately befores, not beforeJeff. So you're matching a word boundary betweenJeffands, which isn't possible since they're both part of the same word. It's effectively equivalent to