开发者

How do I validate an entry on an email using regex?

I am looking for a reg expression to check for entry XXXXX between store locator and Store number in an email.

Store Locator:开发者_JAVA百科 XXXXXX Store Number:


Store Locator: (.*?) Store Number

You can user Regex Buddy to help you and test.


If the XXXXX is numeric, you could use Store Locator: ([0-9]+) Store Number for bonus validation.


Assuming the store locator can include any non-whitespace characters:

^Store Locator:\W+(?<locator>\w+)

I like Derek Slager's site for .NET-specific regex validation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜