Is there a way to validate a field using required and regex like that:
{ "user": "required|alpha_numeric", "password": "required|alpha_numeric", "id": "required|[regex:^[0-9a-z\\-]+$]", "name": "required|[regex:^[0-9a-zA-Z\\_\\-\\.]+$]" }
Actually this is not working for the required tag. The regex is working well. Thanks.
Hi, forgive me for my bad english.
Is there a way to validate a field using required and regex like that:
{ "user": "required|alpha_numeric", "password": "required|alpha_numeric", "id": "required|[regex:^[0-9a-z\\-]+$]", "name": "required|[regex:^[0-9a-zA-Z\\_\\-\\.]+$]" }
Actually this is not working for the required tag. The regex is working well. Thanks.