I need to tokenize following tag:
{TagName attrib1=”value1” attrib2=”value 3”}.
I would like to write regex to do it, but the trouble is that attribute value can contain space, so I can’t just split with space.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
can’t be put more clearly than this:
http://www.codinghorror.com/blog/2009/11/parsing-html-the-cthulhu-way.html
please explain why you need regexp…
and, you didn’t say anything about your preferred language…
assuming perl:
But again, don’t use regexps for this!!