Question : Trying to delete Txt between tags in Notepad++

I'm trying to delete all the Tracking data on my GPS File. It's in GPX format and I'm using Notepad++ to open and edit it.  I know I'm suppose to delete all the data between the  "trk" tag but the file is so huge... Notepad++ keeps locking up while I try to highlight everything.  Is there any easier way to delete data between two tags?
Thanks

Answer : Trying to delete Txt between tags in Notepad++

It's a little sloppy, but you could download Expresso (http://www.ultrapico.com/ExpressoDownload.htm), then copy/paste the text of the file into the "Sample Text" pane. Put the regex below in the "Regular Expression" pane. Select the "Design Mode" tab near the top of the window, and clear out anything from the "Replacement String" pane (i.e. leave it blank). Then go back to the "Test Mode" tab and click "Replace" (found on the line just below the tabs themselves). The results will appear in the "Replaced Text" pane, from which you can copy and paste into your file.

I tested it on a 25 MB file and it took only a few seconds to process. I'm not sure how large "the file is so huge" is, but I believe this could get you by.
1:
2:
3:
4:
5:
6:
7:
To remove data including "<trk></trk>":

    (?s)<trk>.*?</trk>

To remove data, but leave "<trk></trk>":

    (?s)(?<=<trk>).*?(?=</trk>)
Random Solutions  
 
programming4us programming4us