quote:
Originally posted by Silentdragon
Hmm wouldn't this be better?
code:
/\bbr\b/mgi
Doesn't need to check if its at the begining or not or space character as it looks for word boundries, And works with punctuation. Plus it doesn't chop out the space.
Also the writer should have did a spell check. Regards is not spelled reguards.
Word boundaries don't always work that great, that's why I always use (^|\s+) and ($|\s+).