Add support for RegExp constructor with (RegExp, String).