[Sussex] [OT kinda] PHP and regex

Macdonald-Wallace, Matthew J s0209208 at glos.ac.uk
Mon Nov 25 19:37:01 UTC 2002


>Don't beat yourself up about it.. even the best programmers 
>make those kind of errors day in day out - sometimes you just 
>need another pair of eyes.

Cheers for the support, It helped a fair bit, the regex I've now got is:

'<a href="[^"]*[^"]*">*[A-Z0-9 ]+</a>'

Which, when run on www.interactwiththe.net/index.php (a site of mine that's
not quite ready to run yet!) displays <a href="/">home</a> in the source.

Now I just need to get it it iterate through all the links.  A quick "For"
should do it!

Cheers,

Matt




More information about the Sussex mailing list