in reply to Match non-whitespace characters
I think you want to change those \s to \S
\s matches whitespace, \S matches non-whitespace.
And you need a space behind the comma: "Hello there, neighbour". The $_ as you posted it won't match otherwise, even with \S
|
|---|