Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?

Replies are listed 'Best First'.
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 scrutinizing the Monastery: (10)
As of 2016-08-30 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (420 votes). Check out past polls.