Creating a regex for parsing screens resolutions
<p>I have a string of text that somewhere will contain the resolution to my vid in the format <code>###x###</code> or <code>####x####</code> (ex. 320x240 or ex. 1024x1280 ex. 320x1024 etc.) or any combo in between. I am not great at regexes yet and I was wondering if anyone could point out where I am going wrong.</p>

<pre><code>$res='some long string';
$search='/([0-9]{3-4})x([0-9]{3-4})/';
preg_match($search, $res, $matches);
$res1=$matches[1];
$res2=$matches[2];
</code></pre>
