Republicans regroup after bad election showing