Jump to content

preg_match ne marche pas


lan-nhi

Recommended Posts

J'essaye d'executer le preg_match ci-dessous mais ça ne fonctionne pas. Je ne vois pas d'ou vient l'erreur.

Pouvez-vous m'aider svp!!

Merci!

 

 

if (!(preg_match('#^A#',$data[10]) && preg_match('#\d{8}|\d{7}#',$data[1]) || preg_match('/jaune/i', $data[10]) && preg_match('#\d{8}|\d{14}#',$data[1]) || preg_match('/bleu/i', $data[10]) && preg_match('#\d{14}#', $data[1])))

 

{

$facturesEnErreur++;

echo '[ERREUR] Le numéro de réf contrat n\'est pas valide ! LIGNE : ' . $data[0] . '';

}

Link to comment
https://forums.phpfreaks.com/topic/273196-preg_match-ne-marche-pas/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.