groups

name language licence
PHP/JS : ternaire PHP Other
PHP/MYSQL : Chaines de caractères echapper avant insertion en base PHP Other
PHP/MYSQL : Notes mysqli PHP Other
PHP/MYSQL : Usage procedurale de mysqli PHP Other
PHP/MYSQL : recuperer un date en base et la formater grace à date PHP Other
JS : expressions regulière JS-JQuery Other
HTML : select et optgroup : groupe d'option dans une liste déroulante HTML Other
HTML : HTML 4.01 Strict HTML Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 >



language: JS-JQuery
licence: Other

JS : expressions regulière

options: view full snippetsend to code collector
var EXP_num = new RegExp("^[0-9]+$");
var EXP_num_fixe = new RegExp("^0262([0-9]){6}$");
var EXP_num_portable = new RegExp("^069(2|3)([0-9]){6}$");
var EXP_cp = new RegExp("^974([0-9]){2}$");
var EXP_mail = new RegExp("^[a-z0-9._-].+@([a-z.-])+([.])([a-z]){2,4}$");
var EXP_nom = new RegExp("^[ a-zA-ZéçèàêëîïôöûüâäÉÀÈËËÏÎÖÔÛÜÄÂ'-]+$");
var EXP_date = new RegExp("^[0-9]{2}/[0-9]{2}/[0-9]{4}$");
var EXP_url = new RegExp("^http://");

"^[a-zA-Z0-9_-]$"


//création d'un objet RegExp en js
expression = new RegExp("motif",["drapeau"]);

	
(Continues...)