Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Drop in regex replacements?

by Joost (Canon)
on Sep 09, 2002 at 14:50 UTC ( [id://196288]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub replace {
      my ($tag,$attr,$content) = @_;
    ...
    }
    
    s/\[(\w+)=?(\w*)\](\w+)\[\1\]/replace($1,$2,$3)/esg;
    
  2. or download this
    -- 
    Joost       downtime n. The period during which a system
                is error-free and immune from user input.
    

Log In?
Username:
Password:

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

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

    No recent polls found