I have the below Path/URL
test = "/test/test-products/?pId=9401100&imgId=14607518&catID=5449&modelId=pros&cm_sp=XIT_resp-_-PR-_-14607518_9401100&lid=xit-test-14607518-9401100";
newPath = test.replace('14607518', '12345678');
Not updating every occurrences of the matching string though it has hypen,underscore(-_-)
How can I replace all occurrences of 14607518 with regex?