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

Re: Regular Expression Doubt

by bart (Canon)
on Apr 05, 2005 at 21:03 UTC ( [id://445103]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/($NOCHANGE)|$TOCHANGE/defined $1 ? $1 : $REPLACE /ge;
    
  2. or download this
    s/($NOCHANGE)|$TOCHANGE/$1 || $REPLACE /ge;
    
  3. or download this
    $text =~ s<(<maths>.*?</maths>)|&plus;>{ $1 || '&thinsp;&plus;&thinsp;
    +' }ge;
    

Log In?
Username:
Password:

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

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

    No recent polls found