I have a multiple row string that i want to match from somewhere in the string to the first occurance of another word.
String = "Error Message: This is an error message and the error code for this is 443.
Error_ID = 999-Affd
Solution: Check mainTable 33."
So i want to grab "Error Message:" as the keyword to find then include all the text up to the word Solution
Something like:
Regex re = new Regex(@"Error Message:.*\n ??????", RegexOptions.Ig noreCase);
not sure what to put in for the ??????
String = "Error Message: This is an error message and the error code for this is 443.
Error_ID = 999-Affd
Solution: Check mainTable 33."
So i want to grab "Error Message:" as the keyword to find then include all the text up to the word Solution
Something like:
Regex re = new Regex(@"Error Message:.*\n ??????", RegexOptions.Ig noreCase);
not sure what to put in for the ??????
Comment