I have been trying to get the id
from the following text
<body id=\"body\" runat=\"server\">
In C# using substring or even Regex, but nothing seems to be working. No matter what regex i use, i always get the whole line back. I have been trying to use ^id
, ^id.*
, ^id=\\\\\\\\.*
and id=.*
but they don't either work or give me the desired output. Is there any way i can get the id portion from this text which is enclosed between the characters \" "\
?