Hi all,
I have a table in database of about 10,000 rows, it has different columns, and in one of the column is Body column which has the data in RTF format, but I need to pull only the text from that RTF data. I have the example to let you know what exactly I am looking for, here it is.
This is the example of RTF data in Body column of the table
{\rtf1\ansi\deff0{\fonttbl{\f0\froman Tms Rmn;}}{\colortbl\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue127;\red0\green127\blue127;\red0\green127\blue0;\red127\green0\blue127;\red127\green0\blue0;\red127\green127\blue0;\red127\green127\blue127;\red192\green192\blue192}{\info{\creatim\yr2001\mo6\dy4\hr10\min39\sec52}{\version1}{\vern262367}}\paperw12240\paperh15840\margl360\margr2940\margt239\margb336\deftab720\pard\ql{\f0\fs20\cf0\up0\dn0 6/26/08, F. CLARK; E-MAILED THE CITY'S RISK MGR. AND OTHER STAFF, DEPUTY CITY AT{\par}Y., CITY'S TPA, AND STATES' ATTORNEY ON 6/19/08 TO ASK FOR A STATUS UPDATE. MY {\par}PLAN IS TO HAVE STATES' ATTORNEY MEET WITH THE CITY ATTORNEYS FROM TIME TO TIME {\par}AND PROVIDE STATUS UPDATES AS NEEDED AND UNTIL THE MATTER IS RESOLVED. THE REIN{\par}S. ARE ON NOTICE AND ARE UP TO DATE. {\par}{\par} - FRED}}
I need only the text from this data. From the above example,
6/26/08, F. CLARK; E-MAILED THE CITY'S RISK MGR. AND OTHER STAFF, DEPUTY CITY AT CITY'S TPA, AND STATES' ATTORNEY ON 6/19/08 TO ASK FOR A STATUS UPDATE. MY {\par}PLAN IS TO HAVE STATES' ATTORNEY MEET WITH THE CITY ATTORNEYS FROM TIME TO TIME AND PROVIDE STATUS UPDATES AS NEEDED AND UNTIL THE MATTER IS RESOLVED. THE REINS ARE ON NOTICE AND ARE UP TO DATE.
All rows are not consistent. Can anyone help me in solving my problem?
I have a table in database of about 10,000 rows, it has different columns, and in one of the column is Body column which has the data in RTF format, but I need to pull only the text from that RTF data. I have the example to let you know what exactly I am looking for, here it is.
This is the example of RTF data in Body column of the table
{\rtf1\ansi\deff0{\fonttbl{\f0\froman Tms Rmn;}}{\colortbl\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue127;\red0\green127\blue127;\red0\green127\blue0;\red127\green0\blue127;\red127\green0\blue0;\red127\green127\blue0;\red127\green127\blue127;\red192\green192\blue192}{\info{\creatim\yr2001\mo6\dy4\hr10\min39\sec52}{\version1}{\vern262367}}\paperw12240\paperh15840\margl360\margr2940\margt239\margb336\deftab720\pard\ql{\f0\fs20\cf0\up0\dn0 6/26/08, F. CLARK; E-MAILED THE CITY'S RISK MGR. AND OTHER STAFF, DEPUTY CITY AT{\par}Y., CITY'S TPA, AND STATES' ATTORNEY ON 6/19/08 TO ASK FOR A STATUS UPDATE. MY {\par}PLAN IS TO HAVE STATES' ATTORNEY MEET WITH THE CITY ATTORNEYS FROM TIME TO TIME {\par}AND PROVIDE STATUS UPDATES AS NEEDED AND UNTIL THE MATTER IS RESOLVED. THE REIN{\par}S. ARE ON NOTICE AND ARE UP TO DATE. {\par}{\par} - FRED}}
I need only the text from this data. From the above example,
6/26/08, F. CLARK; E-MAILED THE CITY'S RISK MGR. AND OTHER STAFF, DEPUTY CITY AT CITY'S TPA, AND STATES' ATTORNEY ON 6/19/08 TO ASK FOR A STATUS UPDATE. MY {\par}PLAN IS TO HAVE STATES' ATTORNEY MEET WITH THE CITY ATTORNEYS FROM TIME TO TIME AND PROVIDE STATUS UPDATES AS NEEDED AND UNTIL THE MATTER IS RESOLVED. THE REINS ARE ON NOTICE AND ARE UP TO DATE.
All rows are not consistent. Can anyone help me in solving my problem?