Well the reason I need a REG EXP to do this is because this is part of a MySQL query.
I have a field that can contain either of those values.
Omega Wombat wrote:
Here's a way that doesn't even involve the regexp engine:
//I assume you have an array of strings or something...
foreach($strings as $s) {
if (strpos($s,"G9") !== false && strpos($s, "G9,5") === false) {
//it's a match
}
}
Cheers!
Omega Wombat
http://www.drinknation.com