【问题标题】:YAML regex_replace single quoteYAML regex_replace 单引号
【发布时间】:2021-01-30 04:56:04
【问题描述】:

我尝试使用 \\\\\\'' 转义单引号

示例字符串:

(user1@email.com,'active', 'monthly') 

我尝试了以下正则表达式,我可以删除开始( 和结束),但它不会删除单引号

regex_replace('\\(|\\)|'' ', '')

感谢您的帮助

【问题讨论】:

    标签: regex yaml regexp-replace


    【解决方案1】:

    我最终使用replace 而不是regex_replace

    replace(\"'\",'')
    

    【讨论】:

      猜你喜欢
      • 2020-06-13
      • 2019-05-05
      • 1970-01-01
      • 1970-01-01
      • 2020-02-06
      • 2019-06-23
      • 2020-05-30
      • 1970-01-01
      • 2021-12-19
      相关资源
      最近更新 更多