Regex js
-
Hi,
My regex added in js footer of one page with your plugin doesn’t want to work
function getDateFromString(str) {
var pattern=/(\d{1,4}([.\-/])\d{1,2}([.\-/])\d{1,4})/gi;
return(str.match(pattern));
}
Getting “str” to the function it’s correct.
Also, it is working when I add it in the footer of the whole page (with another plugin), but here always returns null.Is it a problem with the plugin or I should set up something more to make it work? I would really appreciate the answer.
Best regards,
Weronika
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Regex js’ is closed to new replies.