lan-nhi Posted January 15, 2013 Share Posted January 15, 2013 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] . ''; } Quote Link to comment https://forums.phpfreaks.com/topic/273196-preg_match-ne-marche-pas/ Share on other sites More sharing options...
cpd Posted January 15, 2013 Share Posted January 15, 2013 Qu'est-ce que tu essaies de faire. Parler anglais s'il vous plaît. Quote Link to comment https://forums.phpfreaks.com/topic/273196-preg_match-ne-marche-pas/#findComment-1405898 Share on other sites More sharing options...
lan-nhi Posted January 16, 2013 Author Share Posted January 16, 2013 I resolved it yesterday...but i still have problems in my entire program. I will let you know if I can't find solutions. Thanks a lot anyway! Quote Link to comment https://forums.phpfreaks.com/topic/273196-preg_match-ne-marche-pas/#findComment-1406139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.