Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: how to do replace more then one matches?

by virudinesh (Acolyte)
on Jun 03, 2013 at 09:08 UTC ( #1036696=note: print w/ replies, xml ) Need Help??


in reply to Re: how to do replace more then one matches?
in thread how to do replace more then one matches?

$f variable r store in $'(after match)

both r same


Comment on Re^2: how to do replace more then one matches?
Re^3: how to do replace more then one matches?
by hdb (Prior) on Jun 03, 2013 at 09:39 UTC
    $li ="abbjghfg table 1 vinoth figer table2"; $f=$li; while($f=~m /table[ ]([0-9])+|table([0-9])+|fig[ ][0-9]+|fig[0-9]+/i) { $f = $'; $match_key=$&; $front=$`; $rep=$front."<aid=".$match_key; print $rep; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-02 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (30 votes), past polls