regex 27wildcard 27 placeholder

Solutions on MaxInterview for regex 27wildcard 27 placeholder by the best coders in the world

showing results for - "regex 27wildcard 27 placeholder"
Leo
07 Aug 2016
1// To match "cat", "BAT", "fAT", "mat"
2const regexWithWildcard = /.at/gi;
3const testString = "cat BAT cupcake fAT mat dog";
4const allMatchingWords = testString.match(regexWithWildcard); // ["cat", "BAT", "fAT", "mat"]
5