开发者

Email body regex search

开发者 https://www.devze.com 2022-12-09 17:49 出处:网络
Here is an example email body: Name: Jah Selassie Store Locator: Finland Service Number: alphanumeric I am looking for a r开发者_如何学运维egex to search through the body of an email and check for

Here is an example email body:

Name: Jah Selassie

Store Locator: Finland

Service Number: alphanumeric

I am looking for a r开发者_如何学运维egex to search through the body of an email and check for a location entry after "Store Locator".


To match on the end of line:

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


^Store Locator: ?(.*)$

0

精彩评论

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