title: Translate preg_replace with regex in javascript .replace
body: <p>I need to translate this php function:
  $string = preg_replace('/#([a-z0-9]+)/i', '#$1',$string);
  In an equivalent JavaScript .replace function if it's possible.. Thank you..</p>