Added support for regular expression matching, if supported by the C