laziness, impatience, and hubris | |
PerlMonks |
simple regexp questionby KarthikK (Sexton) |
on Nov 21, 2007 at 09:23 UTC ( [id://652084]=perlquestion: print w/replies, xml ) | Need Help?? |
KarthikK has asked for the wisdom of the Perl Monks concerning the following question:
Hello all, i want to replace any string which contains "&;" a space before the semicolon Example: $strTest = "Sometext with cotnent K&K;"; my output should looke like this "Sometext with cotnent K&K ;" a space before the semicolon. the issue is thre can be 'n' number of text or number between & and ; like sometext with conetnst add kklkk&dfaf:dfaÜÄmlddö; How can i write a pattern for this ? is it possible atall? thanks & regards Karthik
Back to
Seekers of Perl Wisdom
|
|