Skip the string sterilization and conversion since we already have a regular expression.