正则表达式模式 [英] regular expression pattern
本文介绍了正则表达式模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI,
我想让正则表达式验证以\\(两个反斜杠)和ip地址和\(一个反斜杠)开头的字符串,以及带有的目录名称可以包含带空格的单词,并且现在应该以反斜杠结尾
例如
\\ 172.16.14.143 \ TDMT
\\ 172.16.14.143 \ Ind结果
请帮我.我需要.
I want regular expression to validate the string that starts with \\ (two back slash) and ip address and \ (one back slash) and the directory name with can contain words with spaces and it should now end with back slash
for example
\\172.16.14.143\TDMT
\\172.16.14.143\Ind Results
Please help me. I am in need.
推荐答案
如 SA 在他对问题的评论中说,您可以先尝试.
Expresso
是一个非常好的使用正则表达式的免费程序,可以从此处下载:
Expresso-首要的正则表达式开发工具 [
As SA said in his comment to the question, you can try first.
Expresso
is a very good free program to work with regular expressions, which can be downloaded from here:
Expresso - The premier regular expression development tool[^].
在这里看看:
http://www.regular-expressions.info/examples.html [ http://www.geekzilla.co.uk/view0CBFD9A7-621D-4B0C-9554- 91FD48AADC77.htm [ ^ ]
http://wiki.tcl.tk/989 [ http://www.mkyong.com/regular-expressions /how-to-validate-ip-address-with-regular-expression/ [ Google [
Take a look here:
http://www.regular-expressions.info/examples.html[^]
http://www.geekzilla.co.uk/view0CBFD9A7-621D-4B0C-9554-91FD48AADC77.htm[^]
http://wiki.tcl.tk/989[^]
http://www.mkyong.com/regular-expressions/how-to-validate-ip-address-with-regular-expression/[^]
And much, much more with brother Google[^]
这篇关于正则表达式模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文