Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
We don't bite newbies here... much
 
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 (Parson) 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 studying the Monastery: (17)
As of 2014-04-24 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls