Simple Regex Help
How can I match strings w开发者_运维知识库ithout 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.
The regex
^[^.]*$
matches a string not containing a dot.
[^.]
will match every character except the dot.
精彩评论