Forum Moderators: coopster
Sometimes I love regex, today is one of those days when I hate them :(
and in particular this element:
.-_
This is a sequence. It matches any char whose ascii code is between '.' and '_', which includes :
./0123456789:;<=>?@
uppercase letters: A to Z
[\]^_
This is why your expression can't match a word with a leading letter in uppercase.
Try this instead:
[^,._!?\s-]
[edited by: Achernar at 12:16 pm (utc) on Sep. 28, 2007]