Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegEx with Coldfusion - RewriteRule

Status
Not open for further replies.

xtendscott

Programmer
Apr 21, 2003
276
0
0
US
I was hoping there is someway similar to the Apache RewriteRules for Coldfusion?

Example:
RewriteRule ^/inventory/(.*)/(.*)-(.*)-(.*).html /inventory.php?year=$1&color=$2&make=$3&model=$4

It seems much simpler than to use FindNoCase("/inventory/", #mystring#) and then parse out the other variables in a url with ReFindNoCase("/", #myString#, 1, "True") triming the string as you go.

Any more experienced RegEx user here?

Thanks.

xtendscott
Web Site Design | Cryosurgery | Walla Walla Portal
 
The closest you will get is something like this:

yoursite.com/page.cfm/var1/val1/var2/val2/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top