gibney.org : Technology : Programming : Regular Expressions : Matching Html-Comments


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





Matching Html-Comments
(Entry Nr. 136, by user 1 | edit)
<!--.*?-->
"<!--" Matches the start of a comment
".*?" Matches everything. But the questionmark makes it "ungreedy" so it will stop to match as soon as the following string matches
"-->" matches the end of the comment
Create a new entry at this position