|Just another Perl shrine|
simple regexp questionby KarthikK (Sexton)
|on Nov 21, 2007 at 09:23 UTC||Need Help??|
KarthikK has asked for the
wisdom of the Perl Monks concerning the following question:
i want to replace any string which contains "&;" a space before the semicolon
$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