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 (Monsignor) 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; }