remove unused regex method