Link to home
Start Free TrialLog in
Avatar of mohammadzahid
mohammadzahidFlag for Canada

asked on

Extracting data from LONG datatype column that contains HTML tags.

Hi All,

While writing a report, I’m running into a road block when trying to extract data from a LONG datatype column that is stored with HTML tags.   I tried REGEXP_REPLACE but it does not accept LONG datatype column.

Here is an example of corrupted data:

1 record ….
<html>hard horn buttons</html>    

2nd record  …
<html><p class="MsoNormal">Good afternoon , on po number 57545 , part number 9362940 ,
p/s 449014 , we received 10 parts that are made incorrectly , please supply an
rma number to return these incorrect parts also I believe we should be holding
off on the remaining 115 on back order until vehicle improvements products
updates it’s product , please advise , thank you&nbsp;<o:p></o:p></p></html>

Desired Output:

1 record:  
hard horn buttons

2 record:
Good afternoon , on po number 57545 , part number 9362940 ,
p/s 449014 , we received 10 parts that are made incorrectly , please supply an
rma number to return these incorrect parts also I believe we should be holding
off on the remaining 115 on back order until vehicle improvements products
updates it’s product , please advise , thank you

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial