when i use 'url' validation in laravel request then give me error.
preg_match(): Compilation failed: invalid range in character class at offset 1828
$this->validate($request, [
'posting_article_url' => 'nullable|url',
]);
it is occurred in php 7.3. in php 7.2 it is working fine.
when i replace 'url' validation with 'regex:pattern' validation then working fine.
$this->validate($request, [
'posting_article_url' => 'nullable|regex:/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/',
]);
Thanks in advance!