Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Removing XML comments with regex

by tuxz0r (Pilgrim)
on Oct 24, 2007 at 19:41 UTC ( [id://646984]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Removing XML comments with regex
in thread Removing XML comments with regex

Right on,
s/<!--.*?-->//gs
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://646984]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found