using pipeline character ( | ) in rules regex validation will break the rules, following Laravel 5.5 doc using array instead of one line is not working
Eg.
this will break:
$form->text('test')->rules('required|regex:/^(AB|CD){2}[0-9]{4}$/');
this does not work:
$form->text('test')->rules(array('required', 'regex:/^(AB|CD){2}[0-9]{4}$/'));
using pipeline character ( | ) in rules regex validation will break the rules, following Laravel 5.5 doc using array instead of one line is not working
Eg.
this will break: $form->text('test')->rules('required|regex:/^(AB|CD){2}[0-9]{4}$/');
this does not work: $form->text('test')->rules(array('required', 'regex:/^(AB|CD){2}[0-9]{4}$/'));