Update: The literal solution could be obtained using /(.)\1/ (see perlre).
In reply to Re: Match 2 same characters by kennethk in thread Match 2 same characters by paragkalra