let text = "titanic"; let myRegex = /t[a-z]*i/; // Change this line let result = text.match(myRegex); //gives "titani" -- why?
/t[a-z]*?i/
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)