SyntaxFix
Write A Post
Hire A Developer
Questions
Apply this if you use laravel.
Laravel has a not_regex where field under validation must not match the given regular expression; uses the PHP preg_match function internally.
preg_match
'email' => 'not_regex:/^.+$/i'