regular expression error in 3.0.x not present in 3.0.6