Well first off, I know it's wrong. I'm trying to translate my regex knowledge from php to C# and it's not quite working the way I want it to.
In php, if I wanted to grab everything from a string within a set of tags I'd just write something to the effect (for the expression) of: "<mytagname>(.*)</mytagname>"
and it would literally grab everything. In C# I write the same thing:
Question
sathenzar
Well first off, I know it's wrong. I'm trying to translate my regex knowledge from php to C# and it's not quite working the way I want it to.
In php, if I wanted to grab everything from a string within a set of tags I'd just write something to the effect (for the expression) of: "<mytagname>(.*)</mytagname>"
and it would literally grab everything. In C# I write the same thing:
When I loop through the matches all it grabs is <div id="myTag>" and then it doesn't grab the rest. The document goes over multiple lines.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts