Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regular Expression Doubt

by borisz (Canon)
on Apr 05, 2005 at 11:47 UTC ( [id://444944]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression Doubt

my $text = ' 1 &plus; 2 <maths> &plus; dfdf</maths> '; my @t; my $x = -1; local *_ = \$text; s!(<maths>.*?</maths>)!$x++;push@t, $1;"##XAHJASH $x##"!egs; s/&plus;/&thinsp;&plus;&thinsp;/g; s/##XAHJASH (\d+)##/$t[$1]/ge; print
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found