I am currently porting my web app codes from PHP to JS.
I am having an issue with this regex. from PHP
used like this
preg_replace('/\(\d*\)|\/\(P\)\//', '', $string);
how can I convert this to work on JS ?
Thank you in advance
str = str.replace(/\(\d*\)|\/\(P\)\//g, "");