Please help with extracting the subject line data from this:
I have used :
but it comes like this extracting the subject but still having this body text below:
Please help with extracting the subject line data from this:
I have used :
but it comes like this extracting the subject but still having this body text below:
please try this
EmailBodyTrail.Split({"Subject:"},StringSplitOptions.None)(1).Trim.Split({Environment.Newline},StringSplitOptions.None)(0).Trim
Alternately use regex
System.Text.RegularExpressions.Regex.Match(EmailBodyTrail,"(?<=Subject\:).*",System.Text.RegularExpressions.RegexOptions.MultiLine).Value
cheers
This worked and helped a lot , I thank you for all your assistance.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.