Re: grep help coordinates

2018-03-05 Thread Marek Stepanek
On 05.03.18 22:49, Steve Wilson wrote: > Need help trying to figure out how to do a grep search and replace in BBEdit > of a couple of coordinates into KML. > Unfortunately the order of the lat/long needs to be flipped. > Here is what it looks like: > > (32.839098817184, -97.303764761793) > >

Re: grep help coordinates

2018-03-05 Thread Steve Wilson
Thanks! -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: --- You received this message because

Re: grep help coordinates

2018-03-05 Thread Fletcher Sandbeck
Something like this should do it. The unescaped parentheses define groups which are referred to by \1 and \2 in the replacement pattern. The escaped parentheses match the actual parentheses around the coordinates. Find: \(([0-9.-]+), ([0-9.-]+)\) Replace: \2,\1 Hope this helps, [fletcher] >

grep help coordinates

2018-03-05 Thread Steve Wilson
Need help trying to figure out how to do a grep search and replace in BBEdit of a couple of coordinates into KML. Unfortunately the order of the lat/long needs to be flipped. Here is what it looks like: (32.839098817184, -97.303764761793) And I need it to look like this: