MySQL regexp_substr()
函数用于模式匹配。它从给定的字符串中返回子字符串。
select regexp_substr('str', 'match_type', occurrence, position, );
select regexp_substr('java t point', '[a-z]+', 2, 3);
输出:
select regexp_substr('my sql function', '[a-z]+', 1, 3);
输出:
粤ICP备18099781号-6
|
粤公网安备 44030502004330号
|
违法和不良信息举报
由 Summer 设计和编码 ❤
'wo1我🙈녕하?们?おは的dege張、'有什么办法只把里面的中文提取出来?\u4e00-\u9fa5不管用
occurrence, position这个位置反了吧,第一行语法中