I am unable to apply a proper regex on customtarget column in bigquery.
With normal MSSQL:
SELECT * from mytable where CustomTargeting like = '%u=%' -- is all okay
With Bigquery(legacy-sql) :
SELECT REGEXP_EXTRACT(CustomTargeting, r'[^u=\d]') as validate_users
from [project:dataset.impressions_4213_20181112] Limit 10
Error:
Exactly one capturing group must be specified
Update:
Yet couldn't get substring u ='anystring'
How can I extract data where CustomTargeting ='%u=somestring%'?