Re:Is there a regular expression to detect a valid regular e...
by unlinkr on Sunday September 08, 2019 @01:15PM
(#20911821)
That is a valid XHTML tag (if I remember correctly) and can be matched perfectly fine by a regex.
[ Parent
| on HN ]
Re:Is there a regular expression to detect a valid regular e...
by nurettin on Sunday September 08, 2019 @01:55PM
(#20912108)
Perhaps 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.
Re:Is there a regular expression to detect a valid regular e...
by unlinkr on Monday September 09, 2019 @04:58AM
(#20916371)
That 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.
Re:Is there a regular expression to detect a valid regular e...
by nurettin on Monday September 09, 2019 @08:34AM
(#20917502)
It just makes the starting offset of the regex input important.