title: PHP Regex to return height and width from style
body: <pre><code>echo "Style : ".$style_src."&lt;br&gt;";
  </code></pre>
  
  <p>returns Style: width:1000px;height:500px</p>
  
  <p>I am now trying to add the echo's of both height &amp; width</p>
  
  <p>Style: width:1000px;height:500px;</p>
  
  <p>Style Height: 500</p>
  
  <p>Style Width: 1000</p>
  
  <p>I do not know much about regex but on regexr /height[\D]+([0-9px|\%]{0,})/ highlights height:500px</p>
  
  <p>What do I need to change just to return the number 500? Do I even need regex....other easier methods?</p>