Connecting Tech Pros Worldwide Forums | Help | Site Map

sql with regex

Newbie
 
Join Date: Sep 2008
Posts: 25
#1: Apr 28 '09
Hi,

I have column values like ---- com.integrosys.sml.app.facility.vo.OBFacility[5647].Pricing Result

in my table .

i need to write a sql query fetching only the number inside the square braces(5647).

how to use regex for this .i am using oracle 10g

regards
Raj

Saii's Avatar
Expert
 
Join Date: Apr 2007
Posts: 141
#2: Apr 30 '09

re: sql with regex


regexp_substr('com.integrosys.sml.app.facility.vo. OBFacility[5647].Pricing Result','[[:digit:]]{4}'

hope it helps
Reply