某些情况下的正则表达式:逗号、数字和空格的组合

regular expression for some cases combinations of commas digits and spaces

提问人:Virus Scan 提问时间:10/23/2023 更新时间:10/23/2023 访问量:18

问:

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

,但这两种解决方案都不能满足需求

clickhouse 正则表达式替换

评论


答: 暂无答案