I'm using www.regexr.com to check my regular expressions in JavaScript. Let's assume I have the following string:
/facilityservices/show/1/price_min:sdc155sd/
Now my task is to find price_min:sdc155sd and remove it. I wrote
var patterns_array = [
'price_min:\w+'
];
var pattern = new RegExp(patterns_array.join("|"), "g");
new_url = current_url.replace(pattern, '');
ON the website above this RegExp matches the word. However when I checking my website it doesn't work. Where I have an error. It's too easy to make mistake...