开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜