what is the regexp pattern to match abc-adm, 12-2adm4, -5adm and so on [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this questionIm using vbscript and basically i need to validate strings which fits something like
*-*adm*
开发者_StackOverflow社区
Thanks in advance
Try .*-.*adm.*
. The .*
means "match .
(any character) *
(zero or more times)".
Here's a link to Microsoft's VBScript regex documentation, which might prove useful for you should you need to construct more complicated regular expressions:
http://msdn.microsoft.com/en-us/library/ms974570.aspx
精彩评论