Extracting data using regexp_extract in Google BigQuery

后端 未结 1 1958
情书的邮戳
情书的邮戳 2021-01-15 02:53

I am trying to extract data from a column which has multiple characters and I am only interested in getting the specific string from the input string. My sample input and ou

相关标签:
1条回答
  • 2021-01-15 03:15

    It's very simple to do:

    select regexp_extract(input,r'he=(.{32})');
    

    or as example:

    select regexp_extract('http://mpp.xyz.com/conv/v=5;m=1;t=16901;ts=20150516234355;he=5e3152eafc50ed0346df7f10095d07c4;catname=Horoscope',r'he=(.{32})')
    
    0 讨论(0)
提交回复
热议问题