convert javascript regex to php

ViXan

New Member
I have the following regular expression:\[code\]RegExp("http://www.amazon.com/([\\w-]+/)?(dp|gp/product)/(\\w+/)?(\\w{10})");\[/code\]Written in javascript.How can I get it to work with PHP's \[code\]preg_match_all\[/code\]? What are the differences as far as regular expressions go?
 
Back
Top