32
rated 0 times
[
36]
[
4]
/ answers: 1 / hits: 17364
/ 10 Years ago, tue, march 11, 2014, 12:00:00
I'm still in the process of learning some decent regex but I would have thought this would work.
This works:
str.replace(/ /g,).replace(/(rn|n|r)/gm,);
But a shorter version of this, does not. Where did I go wrong?
str.replace((/ /g)|(/(rn|n|r)/gm),);
More From » regex