tags:

views:

38

answers:

2

how can i have a regular expression that tests for spaces or tabs but not newlines. i tried \s but found out that it tests for newlines too.

i use C#/WPF but it shouldn't matter

+4  A: 

Use character classes: [ \t]

Lekensteyn
+2  A: 

Try this character set:

[ \t]

This does only match a space or a tabulator.

Gumbo