Try this : <? $str="3:<br><b>foo ·"; preg_match('/3:<br><b>(.*?)·/i',$str,$result); Echo $result[1]; ?>
Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: Johannes Reichardt [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: [PHP] preg_match ;) Hi there! Sorry for annoying you with stupid questions, but actually i am fooling around with this problem since hours: 3:<br><b>foo · what i need is (what else?) foo. i followed the http referer example on php.net but i simply failed - i never get foo if i try to match it somewhat like this: preg_match("/(:<br><b>)?([^&]+)/i", $value, $matches); i tried many variations of this version, but all failed someone who could enligthen me? Mit freundlichen Grüssen |*| |*| [Johannes Reichardt] |*| ************************ |*| Webaddict +49172/3895500 |*| gramba.net:typorized.com |*| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php