Add support for case-insensitive regexp matching on external variables