add regex method