Quote:
Originally Posted by kovidgoyal
@chaley: You could just use the regex engine's boundary operator.
|
Tried "\b(.*?)\b" and "\b(.*)\b", and they don't work. It seems that the first one should, but I didn't feel like taking the time to work it out why it doesn't.
Ahh ..., "\b(\S*)\b" does work, as does "(\S*)".