What is the reglalr eperssion of
http://www.adexmart.com/product.php?id_product=[B][U]14[/U][/B]&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link
in JavaScript. Underlined and bold marked text will vary ??
What is the reglalr eperssion of
http://www.adexmart.com/product.php?id_product=[B][U]14[/U][/B]&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link
in JavaScript. Underlined and bold marked text will vary ??
What would you want to do with it? Don't you want a httpd.conf / .htaccess directive for that?
Anyway, if you have the string in javascript and want the 14, use something like:
var product_id = /.+\?id_product=(\d*).*/.exec('http://www.adexmart.com/product.php?id_product=14&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link')[1];
use mod rewrite
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.