Changed regex method.