in reply to simple regexp question

i think, it works, if i understand your reqirement,

$strTest =~ s/(.*?)(&)(.*?)(;)/$1$2$3 $4/g;

Replies are listed 'Best First'.
Re^2: simple regexp question
by KarthikK (Sexton) on Nov 21, 2007 at 10:50 UTC
    This pattern seems to work. but i will try and do some more testing with my req. thanks a lot

    regrads
    Karthik