$line =~ s/BA/XXXXsome magic sequenceXXXX/g; $line =~ s/A/Z/g; $line =~ s/XXXXsome magic sequenceXXXX/BA/g; [download]
In reply to Re: look behind in REs by jbert in thread look behind in REs by tepas