@scragarJan 24.2008 — #unless you give examples this is about as close as I can guess:
$string = '<li>stuff "copy" </li> <li>meap "another coppied word"</li>'; preg_match("/<li>.+"([^"]+)".+</li>/", $string, $matches); var_dump($matches);// note every 0dd index is what your after. code tags prevent forum messing up regexps. - tested and fixed.
you could even use it in a function to make it easier to reuse: [code=php]function find_val($input){ preg_match_all("/[a-zA-Z]+="([^"]+)"/", $input, $matches); return ($matches[1]); };
@andre4s_yJan 24.2008 — #Sorry for interruption... ? [code=php] <?php $text="stuff title="I dont want this text because it is not between tags"n<li> stuff title="word0" </li>n<li> stuff title="word1" </li>"; preg_match_all("/<li>.+title="(.+)".*</li>/Uis",$text,$result); print_r($result[1]); ?> [/code] it will output : Array ( [0] => word0 [1] => word1 ) [/QUOTE] Ready to cook.... yummy.... ?