|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
How to replace on a smooth way?by bestsiteeditor (Initiate) |
| on Apr 19, 2012 at 13:51 UTC ( #965961=perlquestion: print w/ replies, xml ) | Need Help?? |
|
bestsiteeditor has asked for the
wisdom of the Perl Monks concerning the following question:
I need smooth solution to replace each instance in a string that starts with § with the same instance surrounded with instance
for example the string "§14.2. done -!! this direction was in contradiction with §8.4. §14.4. Sorry, cannot get the logic - when" should become : §14.2. done -!! this direction was in contradiction with §8.4. §14.4. Sorry, cannot get the logic - when" In a nutshel - anything that starts with § to the first white space should be surrounded with tags.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||