How do I say match all whitespace characters except for \n.
I tried it with words - trying to match all word characters apart from "o":
[\w^o] : matched o anyway
[\w[^o]] : invalid
All whitespace characters except \n...
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: All whitespace characters except \n...
Code: Select all
(?:\s(?<!\n))+- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: All whitespace characters except \n...
Yes it does.