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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…