I need a simple way to parse comment lines from aspx (ASP.NET) files;
in which comments are surounded by
<%!-- and --%>
So I created a simple regex:
<%!--(?<val>.*)--%>
With 'singleline' option on, and the following as input...
<%!-- single line comment --%>
<table>table contents here</Table>
<%!-- multiline
wrapped
comment
--%>
.... and the entire input was the match.
I've also tried:
<%!--(?<val>[^(--%>)]*)--%>
But this excludes any comment that has a dash, percent, OR greater
than sign as part of the comment text.
I've also tried lookbehind assertions with no success. But maybe I'm
doing it wrong?
<%!--(?<val>.*(?<!--%>))--%>
If anyone has an idea what I am doing wrong, please let me know.
Thanks,
Michael Lang