title: How correctly to write RegEx
body: <p>I have string <code>$text = " /var/www/images/mobile/test/test/, 1346744549";</code> and i need to transform it to <code>$text = " '/var/www/images/mobile/test/test/', '1346744549'";</code> - add <strong>'</strong> to each "value" in the string. Problems appears with slashes, i don't know how to recognize it. Here is my sample, but it is wrong already...</p>
  
  <pre><code>$text = " /var/www/images/mobile/test/test/, 1346744549";
  $text = preg_replace("/\b|\/\b/i", '"', $text);
  echo $text;
  </code></pre>