tags:

views:

56

answers:

3

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

Store Locator: XXXXXX Store Number:

+2  A: 

Store Locator: (.*?) Store Number

You can user Regex Buddy to help you and test.

Zote
A: 

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.

Michael Petrotta
A: 

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

Adam Bard