I am currently porting my web app codes from PHP to JS.
I am having an issue with this regex. from PHP
/\(\d*\)|\/\(P\)\//
used like this
preg_replace('/\(\d*\)|\/\(P\)\//', '', $string);
how can I convert this to work on JS ?
str.replace();
Thank you in advance
/^$/.test("string")
. – Wesley Schleumer de Góes May 6 '13 at 12:46/g
flag if you want to perform a global regex! ;) – Tim May 6 '13 at 12:47