mohammadzahid
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 <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.
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 <o:p></o:p></p></
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.