+ 2
Regular Expression / Expresión Regular
Is it possible to print what was found by means of a regular expression? Es posible imprimir lo encontrado por medio de una expresión regular?
1 Respuesta
+ 2
var string = “string to search”;
var re1 = /search/;
var why = string.match(re1);
document.write(why);
it is right? 🤔