in reply to Re^2: count repeatation
in thread count repeatation

And if XX contains regexp meta characters, only can write:
s/(XX)/$1/g;

Replies are listed 'Best First'.
Re^4: count repeatation
by ikegami (Patriarch) on Aug 19, 2009 at 18:02 UTC
    s/XX//g would work just as fine if you don't mind being destructive.