• + 0 comments

    A better pattern by @roshankumar350:

    $Regex_Pattern = '/^(\2tic|(tac))+$/';