jeudi 6 juin 2019

Laravel Japanese character validation full width (Katakana & Hirakana )

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)

  1. full width only ckeck:

    'ぁァ1' => invalid,

    'ぁァ1あア1' => invalid,

    'あア1' => valid,

  2. Half width only ckeck:

    'ぁァ1' => valid,

    'ぁァ1あア1' => invalid,

    'あア1' => invalid,



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Xyvos6
via IFTTT

Aucun commentaire:

Enregistrer un commentaire