in reply to Re^3: Removing XML comments with regex
in thread Removing XML comments with regex
is the proper way to go, since we don't want to be greedy and treat the beginning of the first comment until the end of the last comment as a giant comment itself.s/<!--.*?-->//gs
|
|---|