开发者

Regex which contains only numbers and some characters

I need regex which contains only 0-9 numbers and the following characters: -,+,# (but not require开发者_开发知识库d)

How should this be?


This should work with what you're looking for

/[0-9+#-]/ 

fixed as per comment below


How about ([0-9]|[\-+#])+?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜