added regex method