enable to specify Regexp as :with option