I have a string looking something like this
string myString = "Master Language=\"C#\" MasterPageFile=\"~/masterpages/Libraries.master\"";
- I need to verify that it contain the exact words Master and Language="C#"
- I cannot always guarantee that the words Master and Language will be placed like this, hence stuff like Contains("Master Language") wont do
I've been playing around with regex.IsMatch
without any results for a while so if anyone could be able to help me I'd appreciate that!