Contact: aviboots(AT)netvision.net.il
43,939 questions
57,344 answers
573 users
const str = "nodejs c++ python1"; const regex = /([a-zA-Z]{2}[0-9])$/; const result = str.match(regex); console.log(result ? result[0] : null); // [a-zA-Z] letters {2} repeated 2 times [0-9] followed by digit $ at end of string /* run: on1 */