I need to write a class that will pull an XML document out of a text file with surrounding junk. As a first step, I cribbed some code from another web site and so far I have this:
As you can see, I dummied up a
string for
testing purposes. Later I'll read the content of the file into a string for which this is now a placeholder.
The regex doesn't match, and I can't figure out why. I double-escaped the question marks in the regex
pattern, what else am I missing?
Thanks.