Jethro commented on a Page, Simple Highlight  -  Nov 19, 2010

Yeah my bad. For my example, a while loop wasn't needed, especially for a single match. I guess I was spaced out. lol Yeah the if ($istok($strip($1-),$me,32)) { would have done the trick just fine. But using $istok has also come with a downside: if someone uses, "Hi Jaytea, can you help me?" it won't trigger because of the comma being in the way.

About napa's regex, he could have added the word boundary character so it matches for the $me the way it is, and is not constrained by the punctuation characters:

/\b\Q $+ $me $+ \E\b/iS
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.