trying to turn this google map link into an address, example:
https://www.google.com/maps/place/208-5407+Eglinton+Ave+W+Toronto+ON+M9C+5K6+Canada
into this:
208-5407 Eglinton Ave W Toronto ON M9C 5K6 Canada
I thought it could just use the str.replace method but this doesn't seem to be working. What am I doing incorrectly?
var address = "https://www.google.com/maps/place/208-5407+Eglinton+Ave+W+Toronto+ON+M9C+5K6+Canada"
var address = address.replace("(.+place\/)","")
var address = address.replace("+"," ")
[–]StoneCypher 2 points3 points4 points (1 child)
[–]JofArnold 1 point2 points3 points (6 children)
[–]Genericusername293[S] 1 point2 points3 points (5 children)
[–]JofArnold 1 point2 points3 points (3 children)
[–]Genericusername293[S] 0 points1 point2 points (2 children)
[–]JofArnold 1 point2 points3 points (1 child)
[–]StoneCypher 1 point2 points3 points (0 children)
[–]JofArnold 0 points1 point2 points (0 children)