8 ms·
That is a valid XHTML tag (if I remember correctly) and can be matched perfectly fine by a regex.
by unlinkr 7y ago
That is a valid XHTML tag (if I remember correctly) and can be matched perfectly fine by a regex.
- nurettin 7y agoPerhaps something like "([^"]*)" could skip what is inside the string literal. Unless there is "<input" in the string literal, then where you start parsing becomes very important.
- unlinkr 7y agoThat pattern would indeed match a quoted string. I don't see how it would matter if the quoted string contains something like "<input". It can contain anything except a quote character.