News for hackers. Stuff that matters.
Re:Is there a regular expression to detect a valid regular e... by nurettin on Sunday September 08, 2019 @12:26PM (#20911487)
<input value="how about this? />"/>
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.
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.
Re:Is there a regular expression to detect a valid regular e... by unlinkr on Monday September 09, 2019 @09:28AM (#20917916)
Sure. But that would be true for any parsing technique. No parser known to man would be able to produce a valid parse if you start it in the middle of a quoted string!