in reply to Pattern matching

One pattern might look like $data =~ /ng(?!2\.0)/. This is called using a negative look-ahead assertion, a fancy term meaning that you are looking for a pattern to not match at a given location. You can find much more in perlre.