I'll give it a crack, until someone smarter corrects us both...

  rereplacenocase(filtered, 'a href="([^"]+)"', 'a
href="scrubber.cfm?\1"', "all")


On 5/9/06, Paul <[EMAIL PROTECTED]> wrote:
> This should be easier than the past few hours would have me believe.
>
>
>
> I'd like to display outdated pages of our intranet through a filter of sorts
> by reassigning any links in the old content.  So if the old page has a link
> to "http://portal/employee_profiles.cfm"; I want that link to become
> "http://portal2/scrubber.cfm?scrub=http://portal/employee_profiles.cfm";.
> The scrubber template reads the referenced file w/ cfhttp, find/replaces a
> few things, and then outputs the filtered content.  (This needs to be done
> dynamically to allow some people to see the old files and some people to see
> the new version of the old files, so I can't fix it in the actual files
> themselves.)
>
>
>
> I've managed to use reReplaceNoCase well enough to remove the links
> entirely:
>
>             rereplacenocase(filtered, 'a href="[^"]+"', 'a href=""', "all")
>
>
>
> But I need to replace it with a link to the scrubber containing the original
> href in the url as well.  Does this make sense?  I can't believe how my
> brain hates regular expressions.
>
>
>
> Paul
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239988
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
  • Re: RegEx Jerry Johnson

Reply via email to