On Sunday 06 August 2006 18:27, Alex Beston wrote: > $string = "<STRONG>some text</STRONG>"; > $pattern = "/<(.*)>.*<\/\1>/"; > preg_match_all($pattern, $string , $matches, PREG_PATTERN_ORDER); > print_r($matches); Alex, Maybe use alternative like the message from connum at DONOTSPAMME dot googlemail dot com on the php manual : http://fr.php.net/manual/en/function.preg-match-all.php Pierre-Henri Lavigne lavigne at getphuture.com Tel: +33 (0)6.18.75.32.67 PlaneShift: Yakeson Chihiro