Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extracting a substring from a multi line string.

628524Apr 9 2008 — edited Apr 10 2008
My table contains a varchar column name TEXT(2000).I have the following value in one row for this column as:

'A little brown fox jumps over the('hjjhhjhfjhkjhjkfhjkhkjhgjhjkhjkhjkhjkhkjhjkh
jhkgjshjkhkjhjhkjhkjhjhjhjhkjhjhhhhjhjhkjhkjhjhjkhjkhjkhkjhkjhkjhkjhkjhkjhkjhkj
jjjbjbjnbnbnbnmbmnbmnbmnbmnbnmbnmbbbbbbmmmm');lazy dog.

I want to extract the following substr from this example as:

('hjjhhjhfjhkjhjkfhjkhkjhgjhjkhjkhjkhjkhkjhjkh
jhkgjshjkhkjhjhkjhkjhjhjhjhkjhjhhhhjhjhkjhkjhjhjkhjkhjkhkjhkjhkjhkjhkjhkjhkjhkj
jjjbjbjnbnbnbnmbmnbmnbmnbmnbnmbnmbbbbbbmmmm');


Since this particular substr goes into multiple lines,i am facing problem in extracting the same.I am using REGEXT_SUBSTR for the same.

Pls suggest

-MS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2008
Added on Apr 9 2008
4 comments
1,728 views