![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^4: s///g within m//g regionsby almr (Sexton) |
on Nov 09, 2021 at 13:32 UTC ( #11138614=note: print w/replies, xml ) | Need Help?? |
# turn * into - within |...| regions A |simple*example| is |so*simple| to come*up |with these*days|should become # turn * into - within |...| regions A |simple-example| is |so-simple| to come*up |with these-days|So, iterate over matches, and perform substs within each match.
In Section
Seekers of Perl Wisdom
|
|