quote:
Originally posted by markee
quote:
Originally posted by SpunkyLoveMuff
Lol. I could have added a space to either side of the word when checking... I should have tested it lol
And what about if it was a comma, or full-stop, or semicolon, or exclamation mark, etc....?
RegExp
use \W to check that it's not an alphanumeric character before the word. I do agree RegExps are great, but I tried to keep it simple.
It's because of you I started using them in the first place