需要regualr表达式接受不同类型的输入 [英] need regualr expression that accepts different kinds of input
本文介绍了需要regualr表达式接受不同类型的输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要一个接受不同输入的正则表达式,例如
Ex:CSHForest.com \ user
EX:2008-demo \rms
Ex:domain.com\ship_123
我试过^ [a-zA-Z0-9 _.- \] * $
但它不合适,请给我任何一个。
谢谢。
Hi all,
I need a regular expression that accepts different inputs like
Ex:CSHForest.com\user
EX:2008-demo\rms
Ex:domain.com\ship_123
I have tried with ^[a-zA-Z0-9_.-\]*$
but it's not suitable,plz suggest me any one.
thanks.
推荐答案
但它不合适,请给我任何一个。
谢谢。
but it's not suitable,plz suggest me any one.
thanks.
这篇关于需要regualr表达式接受不同类型的输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文