[Sussex] [OT kinda] PHP and regex

The ol' tealeg geoff at tealeg.uklinux.net
Mon Nov 25 19:17:01 UTC 2002


Matt wrote:
-----------
> "^<a href[\"\'A-Za-z0-9_+\.+\"\']>[A-Za-z0-9+\.A-Za-z0-9+]</a>"

Aren't you missing an equals sign?  Surely the string you are matching should begin with:

<a href=" 

not:

<a href"

Am I missing something ?

-- 
GJT
geoff at tealeg.uklinux.net




-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20021125/a521b3d6/attachment.pgp 


More information about the Sussex mailing list