Re: Help invoking a regexp
| From: | Analysis & Solutions | Date: | Fri, 26 Jul 2002 14:10:50 +0000 |
| Subject: | Re: Help invoking a regexp | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109730@lists.php.net to get a copy of this message | ||
On Fri, Jul 26, 2002 at 03:19:26PM +0200, Nicklas af Ekenstam wrote:
>
> Apply above regexp to a string and have it extract all hyperlinks in that string
> and return them in an array.
So, look at the manual, www.php.net/ereg. Examine the list of functions.
Which of them sound like the one you want? Read the manual about that
funciton. Write some code according to what the manual says. Does it
work? Yes? Great. No? Hack a bit to figure out how to make it do what
you want.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409