Bukan regexp tetapi berfungsi.
select xmlcast( xmlquery('for $w in tokenize($text," ") return
if(fn:matches($w,"[0-9]{1,3}")) then (xs:decimal($w)+$offset) else ($w)'
passing 'i want to increase those numbers 20 and 15' as "text", 5 as "offset" returning content) as varchar2(1000))
from dual;
Solusi mencari bilangan bulat dalam teks. Untuk regex internal desimal harus diperpanjang.
\d
dan [:digit:]
tidak didukung oleh xmlquery