Link to home
Start Free TrialLog in
Avatar of Tim Titus
Tim TitusFlag for United States of America

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".
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial