Skip to content

Instantly share code, notes, and snippets.

@xCASx
Created November 22, 2019 09:19
Show Gist options
  • Save xCASx/0026222dad68971ea2c4d7cd75f0aa6c to your computer and use it in GitHub Desktop.
Save xCASx/0026222dad68971ea2c4d7cd75f0aa6c to your computer and use it in GitHub Desktop.
Regex to extract information from TripAdvisor world map
.*\s+"lng": (?<lng>[-0-9]+.[0-9]+),\s+"lid": [0-9]+,\s+"flags": \[\s+(?<flags>"been"(,\s+"fave")*)\s+\],\s+"name": "(?<city>[\w\s]+),\s(?<country>[\w\s,]+)",\s+"lat": (?<lat>[-0-9]+.[0-9]+)\s.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment