I have a regex that I've verified in 3 separate sources as successfully matching the desired text.
- http://regexlib.com/RETester.aspx
- http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx,
- http://sourceforge.net/projects/regextester/
But, when I use the regex in my code. It does not produce a match. I have used other regex with this code and they have resulted in the desired matches. I'm at a loss...
string SampleText = "starttexthere\r\nothertexthereendtexthere";
string RegexPattern = "(?<=starttexthere)(.*?)(?=endtexthere)";
Regex FindRegex = new Regex(@RegexPattern);
Match m = FindRegex.Match(SampleText);
I don't know if the problem is my regex, or my code.