Extract specific area from string

Hi I have a situation. While extracting data from email. For some email it is extracting as:
“-----------
Josh
Thanks”

and for some emails it is extracting as:
"
Josh
Thanks"

The main issue is the lines in the string. Sometimes it comes, sometimes it doesn’t. Can someone help me with it?

@Umer_Shahid

You can try this say the string is stored in str

str.Replace("-","")

cheers

@Umer_Shahid

Use IF Activity and write condition as YourString.Contains("-")

Then
Place Assign activity and write as YourString = YourString.Replace("-","")

Hope this may help you

Thanks,
Srini

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.