skip to Main Content

Javascript – How to use regex to extract a substring, manipulate the substring and re-insert it?

I have this Odata query string (I've split the string over 3 lines for easier reading but in reality is a single line) /odata/businessreport?%24top=25&%24skip=0&%24count=true&%24format=application%2Fjson%3Bodata.metadata%3Dfull&%24filter=()%20and%20 PurchaseDate%20nIN%202023-11-20T00%3A00%3A00.000Z%20and%20 ForeignBarcode%20eq%20'abcd1234' In Javascript, I need to manipulate the purchase-date parameter like so, from PurchaseDate%20nIN%202023-11-20T00%3A00%3A00.000Z to…

VIEW QUESTION
Back To Top
Search