XP is just a number | |
PerlMonks |
Advanced replace functionby sans-clue (Beadle) |
on Dec 04, 2009 at 19:02 UTC ( [id://811143]=perlquestion: print w/replies, xml ) | Need Help?? |
sans-clue has asked for the wisdom of the Perl Monks concerning the following question:
If I have a string like this
I wish to replace the brackets and what is inside with a string like ~~ so that the resultant string is "abc t~~ def ~~ ~~ xyz" how would I do that, considering there can be any number of [blah] in the string. Thanks
Back to
Seekers of Perl Wisdom
|
|