How dose i convert below code to javascript regex?
$regex = "~(?i)<[^>]*>(*SKIP)(*F)|[a-z][a-z ]+~";
$replace = '<span class="text=arial">\0</span>';
$replaced = preg_replace($regex,$replace,$original);
I have tried to follow the link to the demo and use their converter to convert it to JavaScript and now I have this which does not work:
/<[^>]*>(*SKIP)(*F)|[a-z][a-z ]+/gmi
I can not find a substitute for the (*SKIP)(*F)
part and I´m not that good at regex.
Could someone please point me in the right direction?
Thanks