i have a string of html:
"<!DOCTYPE html PUBLIC ......"
or
"<body> ..........</body>"
I want to check if my string starts with "<!DOCTYPE"
.
Thanks in advance!
i have a string of html:
"<!DOCTYPE html PUBLIC ......"
or
"<body> ..........</body>"
I want to check if my string starts with "<!DOCTYPE"
.
Thanks in advance!
from the problem you describe a simple string StartsWith should do the trick http://www.dotnetperls.com/startswith
Just use .StartsWith against your string object.
http://msdn.microsoft.com/en-us/library/baketfxw(v=vs.110).aspx