[thelist] [ColdFusion] Regular Expression Questions

.jeff jeff at members.evolt.org
Tue Feb 25 13:04:00 CST 2003


beam,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Beam
>
> > so, i guess i'm looking for a subexpression that says
> > "if there are any of the characters in the range of
> > a-z, 0-9, and - (the only valid characters for a
> > subdomain), then they must be followed by a dot, but
> > the existence of the subdomain is optional".
>
> this seems to work:
> ^https?:\/\/([a-z0-9-]+\.)?example\.com([^"]*)
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

as does '<a href="(https?:\/\/([a-z0-9\-]+\.){0,1}example\.com[^"]+)' which
i got in a phone call from a list member.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list