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.
精彩评论