https://blog.youkuaiyun.com/Chao_Qing/article/details/106215212
如有一列【地区】,取值都类似【北京/上海】,需要提取前面的北京,及匹配中文
select
regexp_extract(地区,'[\\u4e00-\\u9fa5]+',0) as diqu
from
cat_info
字符串替换函数translate和regexp_replace
https://blog.youkuaiyun.com/Asher117/article/details/108979100
本文介绍如何使用正则表达式从包含特定格式的数据中提取中文信息,并演示了两种字符串替换函数translate和regexp_replace的用法。
4748

被折叠的 条评论
为什么被折叠?



