Hi, @terry-r,
Of course, in absolute terms, you’re quite right about it ! But I would say that people are responsable of what they write !
My regex finds a word Please, followed later with the nearest word E-mail, followed later with the nearest word treatment
If, because of some typos, one or several of these 3 words are truncated or modified in any way, due to the initial (?s) modifier, the regex engine will always try to find out, by all means, a match, if any !
Note that I suppose a possible variation by telling, in my previous post : " Check the Mach case option, if necessary "
Thus :
Any malformed word is just considered as stuff, part of the regex part .+?
And for the smallest range of characters containing these 3 words in that order ( Please ... E-mail .... treatment ) :
A <b> string is inserted before the first word Please
A </b> string is inserted after the final word treatment
No more, no less !
BR
guy038