How do I make a Javascript regular expression that will take this string (named url_string
):
http://localhost:3000/new_note?date1=01-01-2010&date2=03-03-2010
and return it, but with the value of the date1
parameter set to a new date variable, which is called new_date_1
?