>I'm not sure about the specifics of ISAPI Rewrite, but these should do what
>you want...
>
>Match:
>([^?#]*/imp/www)/(\d+).cfm
>
>Replace:
>\1/index.cfm?id=\2
Going by your example I tried the code below it threw an error but I stuck an
extra # but doesn't seem to do anything....I've tried a some workarounds with
joy.
<cfset stringToWork =
Rereplace("http://127.0.0.1/imp/www/index.cfm?id=889","([^?#]*/imp/www)/(\d+).cfm","\1/index.cfm?id=\2","ALL")>
<cfoutput>#stringToWork#</cfoutput>
This is what I had http://127.0.0.1/imp/www/index.cfm?id=889
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1165
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21