web:php:regex:example
Ceci est une ancienne révision du document !
Table des matières
Exemples de regex en vrac
// 1- remove recursively the content of for (), [] and {}
// 2- removes escaped ' and "
// 3- removes content betweend '' and "" (no recursion needed)
$embracerPattern = "/\[([^\[\]]++|(?R))*+\]|\(([^\(\)]++|(?R))*+\)|{([^{}]++|(?R))*+}/";
$escapedQuotePattern = "/\\\\'|\\\\\"/";
$quotedStringPattern = "/'([^']++)*+'|\"([^\"]++)*+\"/";
web/php/regex/example.1381411613.txt.gz · Dernière modification : le 10/10/2013 à 13:26 de Yosko
