RE: [PHP] preg_match ;)
| From: | Boaz Yahav | Date: | Tue, 10 Jun 2003 14:06:05 +0000 |
| Subject: | RE: [PHP] preg_match ;) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150901@lists.php.net to get a copy of this message | ||
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:mailbox@gramba.net]
Sent: Tuesday, June 10, 2003 1:05 PM
To: php-general@lists.php.net
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