sql - 在regexp中'^\d +\D + $'是什么意思

Dip*_*thi 2 sql oracle regexp-like

我通过一个表达 -

select * from table where regexp_like(field, '^\d+\D+$');
Run Code Online (Sandbox Code Playgroud)

我确定表达式的作用,但请有人解释一下究竟'^\d+\D+$'是什么意思吗?

谢谢.

mat*_*guy 5

^字符串的开头

\n单个数字

+一个或多个前面的事件

\ D 数字字符

+一次或多次发生

$ end of string

因此,它表示一个或多个数字后跟一个或多个非数字,这应该是整个字符串,而不是子字符串.