Regular expression: find spaces (tabs/space), but not newlines
How can I have a regular expression that tests for spaces or tabs, but not newlines?
I tried \s
, but I found out that it tests for newlines too.
I use C# (.NET) and WPF, but it shouldn't matter.
Solution 1:
Use character classes: [ \t]
Solution 2:
Try this character set:
[ \t]
This does only match a space or a tabulator.