有一个带有键值对值的sql列
"key": "lineID", "value": ["46761860"]
我如何使用正则表达式提取它并将值写入另一列
select extended_attributes ,
case
when REGEXP_SUBSTR(ib_bpi.extended_attributes,'"lineID":\\\\[?.?"?([^,"\\\\}]+', 1, 1, 'e') ='' then null
else REGEXP_SUBSTR(ib_bpi.extended_attributes,'"lineID":\\\\[?.?"?([^,"\\\\}]+', 1, 1, 'e')
end as original_sales_order_line_id
from table_name where original_sales_order_line_id is not null