![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: List all links from a webpage
From: Toby Inkster <usenet200509@tobyinkster.co.uk>
Date: Thu Sep 08 2005 - 08:52:19 CEST
Robertico wrote:
> I tried to remove the numbers (removed -number_links) but it doesn't work.
Use a regular expression:
$list = preg_replace('/\[[0-9]+\]/', $list);
> Can you explain why adding 12 to the string length ?
Try it without the +12 and see.
-- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contactReceived on Mon Oct 24 02:09:48 2005 |