开发者

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

开发者 https://www.devze.com 2022-12-09 08:50 出处:网络
I am looking for a reg expression to check for entry XXXXX between store locator and Store number in an email.

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

精彩评论

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