This might or might not work. A comprehensive regex to match URLs are very long, (One whole page in mastering regexs by Oreilly)..there is a tag at the dev. exchange that grabs all URLs from a page...
However there is a URLrewriting ISAPI filter that can do urlrewriting..below... >>>>>>>>>>>>>>>>>>>>>>> from a pervious mail It's a module in Apache or a ISAPI filter in IIS. The module is more flexible Check out IIS - there maybe be other filters like this http://www.pstruh.cz/help/urlrepl/library.htm Apache: http://httpd.apache.org/docs/mod/mod_rewrite.html They might not do everything you need > and in non techi terms and perchance English what is URL rewriting ? What can I say. I'm a nerd Justin >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> You might be able to use something like this ??? Justin > -----Original Message----- > From: Dave Phipps [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 1:27 PM > To: ColdFusion User group > Subject: [ cf-dev ] Regex and urltoken > > > Hi, > > I have some text containing the occasional href links that are > driven from > a db query and I need to be able to append the urltoken to these links on > the fly. > > I was thinking that I could use a regex for this but I can't even > begin to > think what the regex would look like. > > The links coming from the db would look like this: > > <a href="index.cfm?fuseaction=intranet.content&contentid=2">My link</a> > > and what I want to have it do is this: > > <a > href="index.cfm?fuseaction=intranet.content&contentid=2&CFID=34234 > 234&CFTOKEN=234234234243">My > link</a> > > Is this possible? the urltoken will be in the form of: #request.urltoken# > > Thanks in advance. > > Dave > > > > ============================================ > Phipps CF Development > Oxford, Oxfordshire. > Telephone: +44(0)7718 896696 > http://www.phipps-cf.co.uk > ============================================ > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
