I want to validate whether user's input is in full width (Katakana & Hirakana & alpha) characters or not?
I has saw Laravel Validation doc but cannot validate on my case. https://readouble.com/laravel/5.7/en/validation.html
anyone can give me an example for below? (input => validate)
-
full width only ckeck:
'ぁァ1' => invalid,
'ぁァ1あア1' => invalid,
'あア1' => valid,
-
Half width only ckeck:
'ぁァ1' => valid,
'ぁァ1あア1' => invalid,
'あア1' => invalid,
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire