title: PHP RegEx pattern for repeating within the string
body: <p>I am trying to make regex for this string :</p>
  
  <pre><code>This is some string &lt;select&gt; this is another string &lt;select var1&gt; another string which can contain special characters &lt;select var2&gt; another variable string &lt;select var1,var2&gt;
  </code></pre>
  
  <p>I need to select all the strings not in select tag.</p>
  
  <pre><code>Select all string not within &lt;select&gt; tag
  </code></pre>
  
  <p>Can anyone help ? using PHP preg_match</p>