Message |
---|
Posted by gary5 Remove <cmt> xxxxx </cmt> I'm a newly registered user. Converted a couple of large gpi files to gpx, but they give an error message in Basecamp. They load ok if I remove the <cmt> tag info from a small sample. How can I remove about 3,500 of those tags in the file? |
Posted by Mark Re: Remove <cmt> xxxxx </cmt> Hi gary5, It would be much easier to help if you provided a small sample here. Regards |
Posted by gary5 Re: Remove <cmt> xxxxx </cmt> <wpt lon="121.3802753" lat="-29.4049994"><name>268-Morapoi Station</name><cmt>Morapoi Station</cmt></wpt> <wpt lon="121.4469419" lat="-28.8788883"><name>272-Malcolm Dam</name><cmt>Malcolm Dam</cmt></wpt> <wpt lon="121.3330531" lat="-28.9144438"><name>273-Gwalia Museum</name><cmt>Gwalia Museum</cmt></wpt> I found a solution. Open the file in Notepad++. Use search & replace all with Regular Expression as follows (?s-i)<cmt>.+?</cmt> Thanks for the quick reply. Could it have been done with any of the edit tools here? |
Posted by Mark Re: Remove <cmt> xxxxx </cmt> Hi gary5, Well done. I would also use any text editor to replace: - all </name><cmt> to a dash or comma - all </cmt> to </name> That would keep any additional info, if required. Regards |