regex match multiple letters code example
Example 1: regex match several words
# To match the entire line which contains one of foo, man, choo:
^.*(foo|man|choo).*$
Example 2: Regular Expressions: Match Single Character with Multiple Possibilities
let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[aeiou]/gi; // Change this line
let result = quoteSample.match(vowelRegex); // Change this line