title: Using preg_match in php to find substring given string?
body: <p>How do I use <code>preg_match</code> in PHP to get the substring <code>D30</code> in the following string?</p>
  
  <pre><code>$string = "random text sample=D30 more random text";
  </code></pre>