Ver originalvar patt=/regexp/;
Ver originalvar patt=new regExp('regexp');
Ver originalvar patt='/regexp/';