preg replace javascript

Solutions on MaxInterview for preg replace javascript by the best coders in the world