Wednesday, 12 April 2017

Nodejs how to replace /\/[^\/]+\.domain\.com/ to exp.domain.com

In php

preg_replace("/\/[^\/]+\.mýite\.com/","/sub.mysite.com", str);

But in node js i cant replace. Plz help me. thank!



via John Kerim

No comments:

Post a Comment