4 ms·
<input value="how about this? />"/>
by nurettin 7y ago
<input value="how about this? />"/>
- unlinkr 7y agoThat 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.