S
Scott Turner
I need help creating a regular expression which will match the following:
"foo" anywhere in the text
Also the text should contain either "bar" or "bar1"
Following are some examples of text which should return a match:
xxxx foo xxxx xxx bar xxxx
xxxx foo xxxx xxx bar1 xxxx
xxxx bar xxxxxxx foo xxxxx xxxx
xxxx bar1 xxxxxxx foo xxxxx xxxx
xxxx bar1 xxxx bar xxx foo xxxxx xxxx
xxx foo xxxxx xxxx xxxx bar1 xxxx bar
Thanks,
Scott
"foo" anywhere in the text
Also the text should contain either "bar" or "bar1"
Following are some examples of text which should return a match:
xxxx foo xxxx xxx bar xxxx
xxxx foo xxxx xxx bar1 xxxx
xxxx bar xxxxxxx foo xxxxx xxxx
xxxx bar1 xxxxxxx foo xxxxx xxxx
xxxx bar1 xxxx bar xxx foo xxxxx xxxx
xxx foo xxxxx xxxx xxxx bar1 xxxx bar
Thanks,
Scott