tags:

views:

32

answers:

2
+1  Q: 

Simple Regex Help

How can I match strings without a dot in regex, for example, these should be matched:

a/b
אאא/תתת
a
b
c
ג
123/1

but these shouldn't:

abc.asp
ddd.css
style/main.css

For .NET Syntax. Thank you.

+5  A: 

The regex

^[^.]*$

matches a string not containing a dot.

Bart Kiers
A: 

[^.] will match every character except the dot.

Pikrass