I want to do a case insensitive REGEX_MATCH and I'm not sure if I can use flags.
BigQuery uses re2 for regular expressions, and re2 does support flags.
For example, to do a case insensitive match:
SELECT REGEXP_MATCH('TomatoPotato', r'TOpo')
false
SELECT REGEXP_MATCH('TomatoPotato', r'(?:TOpo)')
false
SELECT REGEXP_MATCH('TomatoPotato', r'(?i:TOpo)')
true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With