question about regular expression
ben512Nov 12 2007 — edited Nov 14 2007Hi,
I have a column SAMPLE_ID in table TEST1.
The values in this column for example are
SAMPLE_ID
test_100_1_1
test_12_2_3
test_1_10_1
test_1_10_15
I would like to cut all characters beginning with the third underscore ('_') from the rest of the strings.
It should looks like this one:
SMAPLE_ID
test_100_1
test_12_2
test_1_10
test_1_10
I think I have to work with regular expressions and tried something but I can not find a solution.
Can anybody help me, please?
Thanks,
ben