From 2a28696b4340fea6e492aec0981835934a4ba7ce Mon Sep 17 00:00:00 2001 From: Mohamed Gamal Date: Sun, 4 Nov 2018 01:04:07 +0200 Subject: [PATCH] fix typo in not_regex validation reule --- validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation.md b/validation.md index 3a256ce003e..7552dee987e 100644 --- a/validation.md +++ b/validation.md @@ -846,7 +846,7 @@ The field under validation must not be included in the given list of values. The The field under validation must not match the given regular expression. -Internally, this rule uses the PHP `preg_match` function. The pattern specified should obey the same formatting required by `preg_match` and thus also include valid delimiters. For example: `'email' => 'regex:/^.+@.+$/i'`. +Internally, this rule uses the PHP `preg_match` function. The pattern specified should obey the same formatting required by `preg_match` and thus also include valid delimiters. For example: `'email' => 'not_regex:/^.+$/i'`. **Note:** When using the `regex` / `not_regex` patterns, it may be necessary to specify rules in an array instead of using pipe delimiters, especially if the regular expression contains a pipe character.