Go to most recent revision |
Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
49 |
jpm |
1 |
<?php
|
|
|
2 |
class Pattern {
|
|
|
3 |
const PRENOM = "[\p{L}-]+";// Pattern prénom
|
|
|
4 |
const NOM = "[\p{Lu}]+";// Pattern nom
|
|
|
5 |
const COURRIEL = "[a-z0-9!#$%&'*+=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?";// Pattern courriel
|
|
|
6 |
}
|