自定义正则表达式函数
oracle正则表达式函数:
owa_pattern.match(exp, regexp) 这个函数可以用来做正则表达式的判断。
create or replace function match_c (exp varchar2, regexp varchar2) return number as
ret number;
begin
if (owa_pattern.match(exp, regexp)) then
return 1;
else
return 0;
end if;
end;
select match_c('12343','d+') from dual
转载于:https://www.cnblogs.com/fhj2050/archive/2008/01/20/1046034.html