David H. Adler dha at
Wed Mar 1 00:12:02 GMT 2006

On Tue, Feb 28, 2006 at 06:50:36PM -0500, Thomas Castonzo wrote:
> Hello All:
> I'm trying to write a regular expression that will strip <a href> </ 
> a> tags from documents
> but want to leave the linked text alone so the document still makes  
> sense.
> Our server has no modules so I would have to do it like this:
> /<a [^<]*href=["|\']?([^ "\']*)["|\']?[^>].*>([^<]*)</a>/i

Ooh! Ooh! Can I be the first to go "Don't use a regex, use an actual
parser as indicated in the FAQ"? Huh?? Can I??



David H. Adler - <dha at> -
Listen to your brain. It has lots of information.
	- Chelsey, Age 7

More information about the mailing list