Corrected an issue with regular expression matching outside MySQL.