【问题标题】:Redshift regexp_replace Non-English Standard characters [duplicate]Redshift regexp_replace 非英语标准字符 [重复]
【发布时间】:2020-09-13 17:25:15
【问题描述】:

在 redshift 中,我正在尝试像以下示例一样 regexp_replace 字符串以保留撇号、空格、字母数字,但删除非英语标准字符,如 Â。这可能吗?

'He's interested in addressing the challenges of #energy &  #climate change'

'He's interested in addressing the challenges of energy climate change'

【问题讨论】:

    标签: regex amazon-redshift


    【解决方案1】:

    对非 ASCII 字符使用 /[^\x00-\x7F]/g

    【讨论】:

      猜你喜欢
      • 2017-03-01
      • 1970-01-01
      • 2019-03-13
      • 1970-01-01
      • 1970-01-01
      • 2014-05-19
      • 2018-02-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多