I just started using laravel and I am working on validating textarea in one of my forms.
The text box is intended for users, so I want only letters, numbers, spaces and the following characters:,.?;: '"- ()! / @ $
This is what I have
$validator = Validator::make(Input::all(), array('bio' => array('regex:[a-zA-Z0-9 ,\.\?;:\'"-\(\)!/@\$]') ) );
I searched and tried a lot to make it work, but I just canβt understand.
Any help would be greatly appreciated.
thanks
php regex validation forms laravel
Scott
source share