Regex to match all non-digit characters which are interspersed with digits with SQL

限于喜欢 提交于 2019-12-23 05:40:08

问题


Using SQL Anywhere 16 regex (Perl 5 equivalent) I would like to match all non-digit characters in the following string:

This 100 is 2 a 333 test. such that the match results in This is a test.

I have a feeling this requires lookarounds but I'm not sure of the exact syntax.

Some of my failed attempts:

\D* matches This

\D*(?=\d) matches This

(\D*(?=\d*)|(?<=\d)\D*)* matches This

来源:https://stackoverflow.com/questions/36020273/regex-to-match-all-non-digit-characters-which-are-interspersed-with-digits-with

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!