Validating latitude/longitude in Laravel validation regex rule - preg_match(): No ending delimiter '/' found [duplicate]
Is it possible that the pipes are the problem? See, for example, Laravel 5.4 - Validation with Regex. I see that your regexp has a pipe character in it. Try separating the rules into an array instead of using the pipe here: required|regex
In the second example, the first ^
is interpreted as the character that starts the regex string, so it expects a final ^
to match it.