How to parse data using REGEXP_SUBSTR?

前端 未结 3 1913
情深已故
情深已故 2021-01-27 22:56

I have a data set like this (see below) and I try to extract digits which are in form {variable_number_of_digits}{hyphen}{only_one_digit}:

with mcte as (
select          


        
3条回答
  •  忘了有多久
    2021-01-27 23:55

    I try to extract digits which are in form {variable_number_of_digits}{hyphen}{only_one_digit}

    To match numbers in this format you should do something like this.

    Regex: \/\d+-\d

    Regex101 Demo

提交回复
热议问题