Hashed
Hashed

Reputation: 57

Optimization of regular expressions

I m new in regular expressions and I would like to know if there is any possibility to join and search together for strings like .*1234oeoe.* and .*1234iaia.*.

I would like to combine them in a way such that the word search for is 1234w where w is either oeoe or iaia.

Upvotes: 0

Views: 44

Answers (1)

Jay Dee
Jay Dee

Reputation: 2646

Try to use | operator:

1234(oeoe|iaia)

Upvotes: 1

Related Questions