Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hint:
Call a function in the substitution part (activated by /e modifier) which returns your transformation. s/PATTERN/replace($1,$2)/eg Not sure if you even need to pass the matchgroups $1,... into the sub, but it's certainly more readable.
EditPattern should match the links [$1]($2) (pseudo syntax). I recommend using the /x flag for readability. The transformations of $2 should happen inside the replace() sub HTH!
Cheers Rolf In reply to Re: Modifying muliple matched strings in text
by LanX
|
|