Search code snippets, questions, articles...

regular expression

const myName = "Nkwuda Theophilus";
const myRegex = /[a-e]/
let result = myName.match(myRegex);
console.log(result);
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet