better support for Regexp