开发者

what is the regexp pattern to match abc-adm, 12-2adm4, -5adm and so on [closed]

开发者 https://www.devze.com 2023-03-29 16:48 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po
Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

Im 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

0

精彩评论

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