Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Removing XML comments with regex

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

Help for this page

Select Code to Download


  1. or download this
    cat t.xml | perl -e '$/ = ""; $_ = <>; s/<!--.*?-->//gs; print;'
    
  2. or download this
    <Node_A>
        
    ...
            
        </Node_B>
    </Node_A>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-20 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found