Re: [SQL] Need a help in regexp

2010-05-06 Thread Leif Biberg Kristensen
On Thursday 6. May 2010 16.48.26 Nicholas I wrote: > Hi, > > Need a help in regexp! > > I have a table in which the data's are entered like, > > Example: > > One (1) > Two (2) > Three (3) > > I want to extract the data which is only within the parentheses. > > that is > 1 > 2 > 3 > > i have

Re: [SQL] Need a help in regexp

2010-05-06 Thread A. Kretschmer
In response to Nicholas I : > Hi, > > Need a help in regexp! > > I have a table in which the data's are entered like, > > Example: > > One (1) > Two (2) > Three (3) > > I want to extract the data which is only within the parentheses. > > that is > 1 > 2 > 3 > > i have written a query, > sele

[SQL] Need a help in regexp

2010-05-06 Thread Nicholas I
Hi, Need a help in regexp! I have a table in which the data's are entered like, Example: One (1) Two (2) Three (3) I want to extract the data which is only within the parentheses. that is 1 2 3 i have written a query, *select regexp_matches(name,'([^(]+)([)]+)','g') from table;* which output