i\'m trying to swap latitude and longitude values in notepad++ with regular expressions. i tried to search some guide on the web but i didn\'t understand how to do. i have a
Search for:
([0-9]+(\.[0-9]+)?),([0-9]+(\.[0-9]+)?)
Replace with:
\2,\1
This catches numbers like 1, 1.1 but not 1. or .5. My previous regexp ([0-9]+.?[0-9]*),([0-9]+.?[0-9]*) would allow for 1..
1
1.1
1.
.5
([0-9]+.?[0-9]*),([0-9]+.?[0-9]*)