in reply to Regexp experts, come to rescue!
This however, does not return any results whatsoever now. I split it into three individual componets because I wanted to see if the engine will match that way. No go.$MType =~ s/\s+//g; if ($MType =~ /^(?:-41)$/i || $MType =~ /^(?:-55)$/i || $MType =~ /^(?:-jj)$/i) { print "\"red\""; } else { print "\"#CCFFCC\""; }
|
|---|