Overview

Packages

  • Framework
  • None
  • PHP
  • Utilitaire

Classes

  • Chaine
  • Encodage
  • Fichier
  • Pattern
  • Tableau
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: // declare(encoding='UTF-8');
 3: /**
 4:  * Classe fournissant des constantes correspondant à des expressions régulières de vérification très courrantes.
 5:  *
 6:  * @category    PHP 5.2
 7:  * @package Utilitaire
 8:  * @author      Jean-Pascal MILCENT <jpm@tela-botanica.org>
 9:  * @copyright   Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
10:  * @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11:  * @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2 
12:  * @version $Id: Pattern.php 299 2011-01-18 14:03:46Z jpm $
13:  * @link        /doc/framework/
14:  */
15: class Pattern {
16:     const PRENOM = "[\p{L}-]+";// Pattern prénom
17:     const NOM = "[\p{Lu}]+";// Pattern nom
18:     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
19:     const URL =  "^(?:(?:ht|f)tp(?:s?)\\:\\/\\/|~/|/)?(?:\\w+:\\w+@)?(?:(?:[-\\w]+\\.)+(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?::[\\d]{1,5})?(?:(?:(?:/(?:[-\\w~!$+|.,=]|%[a-f\\d]{2})+)+|/)+|\\?|#)?(?:(?:\\?(?:[-\\w~!$+|.,*:]|%[a-f\\d{2}])+=(?:[-\\w~!$+|.,*:=]|%[a-f\\d]{2})*)(?:&(?:[-\\w~!$+|.,*:]|%[a-f\\d{2}])+=(?:[-\\w~!$+|.,*:=]|%[a-f\\d]{2})*)*)*(?:#(?:[-\\w~!$+|.,*:=]|%[a-f\\d]{2})*)?$";
20:     const HEURE_MINUTE = "^(?:[0-1][0-9]|2[0-4]):(?:[0-5][0-9]|60)$";// Heure au format 24h avec séparateur d'heure et minute ':' 
21:     const LATITUDE = "^-?([0-8]?[0-9]([.,][0-9]*)?|90)$"; // Nombre décimal positif ou négatif allant de 0 à 89 ou nombre entier valant 90 avec pour séparateur des décimales "." ou ","
22:     const LONGITUDE = "^-?((1[0-7][0-9]|[1-9]?[0-9])([.,][0-9]*)?|180)$"; // Nombre décimal positif ou négatif allant de 0 à 179 ou nombre entier valant 180 avec pour séparateur des décimales "." ou ","
23: }
24: ?>
API documentation generated by ApiGen 2.8.0