Ok, here is the problem: I have this little bit of code: [code]<?php $lole = array('rouge', 'vert', 'bleu'); $STRING = "Le ciel est $$!!WIDTH2++--"; echo preg_replace("/\\$\\$!!WIDTH(\\d+)\\+\\+--/", "\\1", $STRING); ?>[/code] The Regex is proper as the script echoes "Le ciel est 2". However, I would like him to echo "Le ciel est bleu" (where "bleu" is the index 2 of array $lole... You get the picture...) I tried many different solutions but none seem to work. Here is what I've tried: [code] echo preg_replace("/\\$\\$!!WIDTH(\\d+)\\+\\+--/", $lole["\\1"], $STRING); echo preg_replace("/\\$\\$!!WIDTH(\\d+)\\+\\+--/", "$lole[\\1]", $STRING); echo preg_replace("/\\$\\$!!WIDTH(\\d+)\\+\\+--/", $lole[\\1], $STRING); [/code] Thanks for any help you can provide, Bruno M-A.