RE: [PHP] hyperlink parser - a bit new view :)
| From: | Roman | Date: | Sun, 18 Aug 2002 21:53:11 +0000 |
| Subject: | RE: [PHP] hyperlink parser - a bit new view :) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113157@lists.php.net to get a copy of this message | ||
Hi Mat,
I would not please for help if I would not read those texts. Of course I've
read them both.
But on those phpbuilder's page there are also similar questions but answered
scripts don't work, for example:
$text="<a target=\"top\" href=\"http://aaa\">ttrtert</a>";
preg_match_all("|href=\"?([^\"' >]+)|i(+[ >])", $text,$ar);
print_r($ar);
returns this:
Warning: Unknown modifier '(' in test.php on line 5 [line 5 is that line
with preg_match_all]
Array ( )
I really don't know :(
Roman
-----Original Message-----
From: MET [mailto:met@uberstats.com]
Look up Regular Expressions. Basically they allow you to search out
Check out these links:
http://www.php.net/manual/en/ref.regex.php
http://www.phpbuilder.com/columns/dario19990616.php3
~ Matthew