Je bataille sec avec des expresssion régulières, voici les deux problèmes que j'ai:
si
$pattern = "#http://[0-9a-z].domaine.com/thumbs/#";
$url = "http://p3.domaine.com/thumbs/899/petit.jpg";
Pourquoi preg_match($pattern, $url); me renvoi un résultat négatif?
Et même problème pour se cas:
$pattern = "#http://www.domaine.com/page-[0-9].html#";
$url = "http://www.domaine.com/page-452.html";
La encore le preg_match($pattern, $url); me renvoi un FALSE et pourtant les url semblent coller avec mes expressions régulières, ou est-ce que je me trompe ?
Merci pour votre aide



Haut












