Preg_match question
| From: | Dave Carrera | Date: | Sat, 29 May 2004 08:30:15 +0000 |
| Subject: | Preg_match question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187185@lists.php.net to get a copy of this message | ||
Hi List,
I have managed to list files on my website using a combination of
preg_match_all and str_replace in an array.
What I would like to know is how do I lift out of a <a> tag the contents
from href=".
Example:
Link returned = <a href="./somepage.php">Of to some page</a>
The bit I want to play with is ./somepage.php.
I think it might be something to do with another preg of some kind but I can
not work it our so I ask for help from the list.
Thank you in advance for any help or guidance you my give
Dave C
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.691 / Virus Database: 452 - Release Date: 26/05/2004