jeudi 7 mars 2019

Regex for validating email and add dot symbol 2

Hi Everybody My Validation Here Allow for string and numbers and dots (.)

Now i need to add - and _ to my validation how can I do it ?

'email' => 'required|string|email|unique:users|regex:/^[a-zA-Z0-9.]+@[a-zA-Z0-9.]+\.[a-zA-Z]{2,4}/'



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire