I have a pre-defined set of words like Horse Pearl House
And I would want my regular expression to match any word contained among those 3.
Example: orse - contained in Horse. Pea - contained in Pearl. Ho - contained in Horse and House.
How do I create a regular expression to achieve this in JavaScript or c#?
I was thinking in this direction.
\b*(Horse|Pearl|House)