Exact Word Regex
<p>I used this from another question that I asked
(<a href="http://stackoverflow.com/questions/12908277/whole-word-php-regex">Whole Word PHP Regex</a>)</p>

<pre><code>$partnumber = "4.7585";
$productname = "Eibach 4.7585.880 Sport Plus Kit";

    if(preg_match('/[^\B\.]'.preg_quote($partnumber).'[^\B\.]/i', $productname)){
        echo "****************Exact Match****************";
    }
</code></pre>

<p>It seems to work great except for the following example: </p>

<pre><code>$partnumber = "19150";
$productname = "PIAA 9150 Lamps - Deno-2 LED";

if(preg_match('/[^\B\.]'.preg_quote($partnumber).'[^\B\.]/i', $productname)){
    echo "******************Exact Match******************";
}
</code></pre>

<p>That is returning as an exact result. Not sure why. Any ideas?</p>
