Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
In my Outlook Addin, when I fetch the mail item body (as plain text)...
It gives me a text like this... (depending on the mail, it can even be complex)

XML
<http://10.30.10.31:8080/s/en_USnuhc47-1988229788/6105/3/_/images/icon-jira-logo.png> \t\r\n <http://10.30.10.31:8080/secure/useravatar?ownerId=nameofperson&avatarId=10202> \r\nFMW <http://10.30.10.31:8080/secure/ViewProfile.jspa?name=nameofperson>  updated  <http://10.30.10.31:8080/images/icons/issuetypes/improvement.png> FCON-30 <http://10.30.10.31:8080/browse/FCON-30>  \r\nDial Input Text Field <http://10.30.10.31:8080/browse/FCON-30>  \r\n\tChange By: \tname <http://10.30.10.31:8080/secure/ViewProfile.jspa?name=nameofperson>  (25/Aug/13 11:59 AM) Text \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \nText \n


How can I extract the text from this body... Please help...
Posted
Comments
ridoy 26-Aug-13 7:17am    
Possibly using regular expression to extract that would be a good option.
Yesudasan Moses 26-Aug-13 8:09am    
yea i am using it,,,, actually my aim is to extract the phone numbers from the mail,,,,
Regex returns me -1988229788, the first number in http... thatsy i wanna remove this,,,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900