RegEx not working while IndexOf does... why?
Posted on 2007-11-22
I have this RegEx expression that I am trying to find in a string:
r = new Regex("> $");
m = r.Match(bookInfo, m1.Index);
It doesn't find the string, yet the following does:
index2 = bookInfo.IndexOf("> $", m1.Index)
What is wrong with the RegEx statement?