javascript

regular expression

const myName = "Nkwuda Theophilus";
const myRegex = /[a-e]/
let result = myName.match(myRegex);
console.log(result);
Was this helpful?