I want to extract the text in between last occurrence of sent to & as on
What will be the regex code for this…
The answer must be
9876_Bangalore Electronic City 17
This test session has been sent to 9876_India and except the cases that related to be and has been sent to 9876_India as on the way.
This test session has been sent to 9876_Bangalore and except the cases that related to be and has been sent to 9876_Bangalore Electronic city 17 as on the way.
9876_india is the static output?
Do you have any static value in the input?
You can try with regex expression @Praveen_Vs
The text in between sent to & as on will be dynamic.
System.Text.RegularExpressions.Regex.Match(StrVariable,"(?<=sent to )\S+(?=\sas on)").ToString
Check out this expression @Praveen_Vs
How about the following expression?