Why did you edit your response? The code I see in the email notification I was sent for your reply to my message looks more correct than the code I now see. For one, you're going to need a for loop to iterate over the result of Matches (not Match). Match finds a single result, and Matches finds all results. For two, r.Match(WordToFind) is searching "WordToFind" rather than "Line".
Kevin Marois wrote:
once I get a match, how do I get the Key/Value data
You can get groups based on the name. Something like this (I don't have my compiler open, so it may vary slightly):
String key = m.Groups["Key"].Value;
String value = m.Groups["Value"].Value;
Kevin Marois wrote:
RegexOptions.RightToLeft
This may drastically change the functionality, but I'm not exactly sure what it does, so you may want to Google this.
Kevin Marois wrote:
I'm fairly frustrated at this point. This shouldn't be this difficult.
Regular expressions are complicated, but powerful. You'll get used to them over time. From what others say, Expresso is a good tool to learn regular expressions, though I use a custom tool I built for myself.
Thou mewling ill-breeding pignut!