These aren't the characters you're looking for...

Nigel Rantor wiggly at
Tue Aug 19 11:38:28 BST 2008

Andy Wardley wrote:
> I mistakenly wrote this the other day:
>     [\s^\n]
> What I wanted was to match a whitespace character that wasn't a newline.
> Second: am I missing something obvious?  Is there a better way to do it?

How about matching on this? -  [^\S\n]

More information about the mailing list