[英]Oracle: Regular expression for dot
For example, I have a table "example" which has a column "col1" with string like below 例如,我有一个表“ example”,其中有一个列“ col1”,其字符串如下所示
some example text here x2.0.3-a abc
some other example text 1.5 abc
another example text 0.1.4 mnp
some other example text abc
another example text mnp
I want to select those rows that matches a regular expression. 我想选择与正则表达式匹配的那些行。 I want the regular expression something like this
我想要这样的正则表达式
any string.any string.any string space abc/mnp
or any string.any string space abc/mnp
that is the regular expression should match two or three dots, before and after of each dot there should be at least one string(char/number/special chars) and then a single space and then at the end either abc/mnp
. 正则表达式的
any string.any string space abc/mnp
any string.any string.any string space abc/mnp
或any string.any string space abc/mnp
应该匹配两个或三个点,每个点的前后至少应有一个字符串(char /数字/特殊字符),然后是单个空格,最后是abc/mnp
。 What will be the regular expression and sql query for this? 正则表达式和sql查询是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.