View Single Post
Old 07-04-2011, 05:31 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Here is a regex for you amazon california webmasters

I had a client that needed to modify his amazon urls, thought I would share the regex I used incase anyone else wants it.

matches urls

regex

Quote:
#(?:http://(?:www\.){0,1}amazon\.com(?:/.*){0,1}?:/dp/|/exec/obidos/ASIN/|/gp/product/))(.*?)(?:/.*|$)#
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote