title: Regular expression that contains some logic
body: <p>I am looking a regular expression that contains two logic:
  1. Does not contain any white space
  2. Must contain (/ or . or both) . Number of (/ or .) may be one or multiple.</p>
  
  <pre><code>$text = "Hi jaghdja ahja.ja//hda manmna.bnm bana na/bbnavn.com"; //for an example
  //expecting output an array("ahja.ja//hda","manmna.bnm","na/bbnavn.com");
  </code></pre>
  
  <p>What I am using</p>
  
  <pre><code>preg_match_all("#([^\s]|\.|\/)*#",$a,$arr);
  print_r($arr);
  </code></pre>