Commit 7df6398a authored by Clement GAUDUCHEAU's avatar Clement GAUDUCHEAU
Browse files

fin du regex

parent 25de97c2
...@@ -71,13 +71,14 @@ function suppr_accents($str, $encoding='utf-8') ...@@ -71,13 +71,14 @@ function suppr_accents($str, $encoding='utf-8')
} }
else{ // sinon affichage normal else{ // sinon affichage normal
if($j==1){ if($j==1){
$matrice[$ligneMatrice][$colonneMatrice] = $split1[$j]; if((preg_match("#^[\" \"][^p]#",$split1[$j])))
$matrice[$ligneMatrice][$colonneMatrice] = $split1[$j];
} }
else{ else{
$split1[$j] = suppr_accents($split1[$j]); $split1[$j] = suppr_accents($split1[$j]);
//echo $split1[$j]; //echo $split1[$j];
//"#^[^p][(]?[\" \"]?[1|2|3]?[1-9]?[\" \"]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]{0,1}[a-zA-Z]*[^p]?[\" \"]?[1|2]?[0-9]{3}[)]?#i" //"#^[^p][(]?[\" \"]?[1|2|3]?[1-9]?[\" \"]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]{0,1}[a-zA-Z]*[^p]?[\" \"]?[1|2]?[0-9]{3}[)]?#i"
if(preg_match("#^[\" \"][^p][(]?[\" \"]?[1|2|3]?[1-9]?[\" \"]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]{0,1}[a-zA-Z]*[^p]?[\" \"]?[1|2]?[0-9]{3}[)]?#i", $split1[$j])){ if(preg_match("#^[\" \"|\"\"][^p][(]?[\" \"]?[1|2|3]?[1-9]?[\" \"]?[JAN|FEV|MAR|AVR|MAI|JUI|AOU|SEP|OCT|NOV|DEC]{0,1}[a-zA-Z]*[^p]?[\" \"]?[1|2]?[0-9]{3}[)]?#i", $split1[$j])){
$matrice[$ligneMatrice][$colonneMatrice] = $split1[$j]; $matrice[$ligneMatrice][$colonneMatrice] = $split1[$j];
} //fin regex } //fin regex
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment