Hello,
from a query like '
This is my pattern:
Hello,
Thank you for contacting Google Cloud Community!
Here's the improved regular expression:
WITH b AS (
SELECT 'a' AS query_id, """--select * from vf-de-datahub.schema1.table1
select *
from vf-de-datahub.schema2.table2;
--select * from vf-de-datahub.schema3.table3
--select * from vf-de-datahub.schema4.table4
select * from INFORMATION_SCHEMA.JOBS_TIMELINE""" AS query
)
SELECT query_id, REGEXP_EXTRACT_ALL(query, r'(?
Regards,
Jai Ade
Good Morning Jai,
thank you. Can you please complete the pattern? It is cut in the middle.
Thanks,
Beata
I guess, you want to use a negative look ahead but this reg exp is running in Big Query.
Error: Cannot parse regular expression: invalid perl operator: (?!
Big Query doesn't provide ''look ahead' in this syntax.
Is there any other functionalty for negative look ahead for big query?
Thanks,
Beata