regex that ignore ' in word

hi, how can i do regex like that:

i have the word holdem i want to select

holdem , hold'em ,ho'ldem , holde'm

thanks

orbens (0) - 1 month ago - Reply 0


There is probably a better way to do this, but what about:

/h'?o'?l'?d'?e'?m/

The '?' character makes the ' optional.

bidnapper (2) - 1 month ago - Reply 1