提问人:Virus Scan 提问时间:10/23/2023 更新时间:10/23/2023 访问量:18
某些情况下的正则表达式:逗号、数字和空格的组合
regular expression for some cases combinations of commas digits and spaces
问:
ClickHouse需要正则表达式
在入口处
" ;$some,cases_for, regular ,2,3%expressions, ,'
"
在出口处
"some cases for regular 2,3% expressions
"
我试过了:
select
' ;$some,cases_for, regular ,2,3%expressions, ,'' as string_before_regexp
trim(regexp_replace(string_before_regexp, ',([^0-9])', '\\1')) as string_after_regexp_1,
trim(regexp_replace(string_before_regexp, '\,|\'', '')) as string_after_regexp_2
,但这两种解决方案都不能满足需求
答: 暂无答案
评论