I am having a string of array from Subject line and I wanted to extract specific text from text line how to extract it.
String of array example - TEST [ABC DEF GHI]and you-Monday is today
From the above I wanted to extract Monday.
Any suggestions would be helpful.
Can you elaborate?
If you want to extract a word before " is today" from string variable, the following will work.
System.Text.RegularExpressions.Regex.Match(yourString,"\w+(?= is today)").Value
i share another solution
It would be better if you can give 2 real strings and explain which string you want to extract from it.
You can either use Regex to extract the specific pattern or use split/wubstring to fetch the string between 2 strings.
But need few more sample to give a solution.