Added support for characters specification in regular expression.