tags:

views:

50

answers:

2

Here is an example email body:

Name: Jah Selassie
Store Locator: Finland
Service Number: alphanumeric

I am looking for a regex to search through the body of an email and check for a location entry after "Store Locator".

+5  A: 

To match on the end of line:

Store Locator:\s*([^\r\n]*)
Gavin Miller
A: 

^Store Locator: ?(.*)$