<Original message>
From: Kunal Jhunjhunwala <[EMAIL PROTECTED]>
Date: Wed, Sep 05, 2001 at 03:49:49PM +0530
Message-ID: <056a01c135f4$4e7b99a0$0301a8c0@CONFUSED>
Subject: [PHP] Links

> Hey,
> This is the second time I am asking about this. I havent been able to solve
> the problem. I am trying to get all the information between the <a> </a>
> tags. How can i do this? I couldnt figure the regex out :(
> Regards,
> Kunal Jhunjhunwala

</Original message>

<Reply>

Here you are!

This regex gets you everything between all <A> and </A> tags. Case
insensitive, including embedded HTML-tags etc. Try it and let me
know if this is what you need.

--- PHP code ---
preg_match_all ("/<a[^>]*>(.+)<\/a>/imU", $StringToSearch, $matches);
print_r ($matches);
--- End of PHP code ---

</Reply>

-- 

* R&zE:


-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to