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. > [snip] > > Second: am I missing something obvious? Is there a better way to do it? How about matching on this? - [^\S\n]