I don't think this can be done with one regexp. You will need to find all these tags 
in a loop and replace the url in the href attribute one by one

        -----Oorspronkelijk bericht----- 
        Van: Ryan Mitchell [mailto:[EMAIL PROTECTED] 
        Verzonden: ma 22/09/2003 12:12 
        Aan: CF-Talk 
        CC: 
        Onderwerp: replacing all urls... with a class attribute
        
        

        hello
        
        i'm needing a bit of quick regex help... i've got the following
        bit of code:
        
        output = ReReplace(cfhttp.FileContent,'([[:alnum:]/
        ]+[[:alnum:]]+\.php+[[:alnum:]:;%-_\.\?/
        =]?)','#CGI.SCRIPT_NAME#?section=#url.section#&subsection=
        #url.subsection#&page=#url.page#&fp=\1','ALL')
        
        which replaces all the urls in the document... but i actually
        need it to replace all urls within anchor tags that DONT have
        class="postlink"...
        
        any help??
        Ryan
        
        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137877
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to