匹配某一个字段的纯数字部分,如下 温度只匹配数字部分
select (regexp_split_to_array('35.778以下','[^\d{2}.\d{1,}]')::varchar[])[1]
匹配域名host
select substring('http://page.china.alibaba.com/others/feedbackfromlitalk.html',E'\\w+://([\\w.]+)')
如下图
匹配某一个字段的纯数字部分,如下 温度只匹配数字部分
select (regexp_split_to_array('35.778以下','[^\d{2}.\d{1,}]')::varchar[])[1]
匹配域名host
select substring('http://page.china.alibaba.com/others/feedbackfromlitalk.html',E'\\w+://([\\w.]+)')
如下图
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。