Tim Titus
asked on
Help creating a RegEx expression to match three possible phrases
I need to create a RegEx expression that will attempt to match any of the following three phrases:
"cookies" or "chocolate cake" or "jelly doughnuts"
Thus, if I enter "sugar cookies at my house" would match.
"I ate a chocolate cake slice" would match.
"I bought some jelly doughnuts from the bakery" would match.
It should be case-sensitive so it would NOT match "Cookies".
"cookies" or "chocolate cake" or "jelly doughnuts"
Thus, if I enter "sugar cookies at my house" would match.
"I ate a chocolate cake slice" would match.
"I bought some jelly doughnuts from the bakery" would match.
It should be case-sensitive so it would NOT match "Cookies".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.