[thelist] [ColdFusion] Regular Expression Questions
.jeff
jeff at members.evolt.org
Tue Feb 25 13:06:01 CST 2003
tobyn,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tobyn Baugher
>
> Beam's response matches roughly what I would use for
> your first problem.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
yup, got that much sorted.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > so, next question is how to find relative and root
> > relative links in the document. obviously,
> > '<a href="(\/?[^"]+)' is far too general.
>
> I think you can get away with this:
>
> <a href="([^:"]+)"
>
> All absolute URLs have colons in them between the
> protocol and the rest of the URL AFAIK (https?:, ftp:,
> mailto:), and so a URL that is lacking them would be
> relative.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
that worked a treat. i knew it would be simple. i just couldn't put my
finger on what the exclusive character was.
thanks,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list