title: php regex string between
body: <p>I have this string:</p>
  
  <pre><code>&lt;span itemprop="author" itemscope="" itemtype="http://schema.org/Person"&gt;&lt;span itemprop="name"&gt;gegi123&lt;/span&gt;&lt;/span&gt;
  </code></pre>
  
  <p>and i need <code>gegi123</code></p>
  
  <p>I tried this: </p>
  
  <pre><code>/&lt;span itemprop="author" itemscope="" itemtype="http://schema.org/Person"&gt;&lt;span itemprop="name"&gt;(.*?)&lt;/span&gt;&lt;/span&gt;/
  </code></pre>
  
  <p>but that shows an error:</p>
  
  <pre><code>Warning: preg_match_all(): Unknown modifier '/' in /var/www/post/main.php on line 29
  </code></pre>