mardi 30 août 2016

PHP reg ex allow all letters in all alphabets

I want to create a reg expression in PHP to allow all letters in all alphabet including Cyrillic, Greek Chinese etc and also allow numbers, dot and underscore. First three characters must be letters (all alphabets).

This will be used to validate a username so no spaces.

$regex = p{L};

Aucun commentaire:

Enregistrer un commentaire