You are here: PSPad forum > English discussion forum > How to remove that 'time tags' from file?

How to remove that 'time tags' from file?

#1 How to remove that 'time tags' from file?

Posted by: patrickh111 | Date: 2014-11-17 19:15 | IP: IP Logged

Hi, i working new for several years with PSPad and never have a problem until now...

i have files were i have to delete some text, i give at once the problem here:

i´ts about a GPX file where i have to delete all the time tags

<trkpt lat="47.410760000" lon="12.714200000">
<ele>1750.000000</ele>
<time>2012-05-01T08:00:00Z</time>
</trkpt>
<trkpt lat="47.410490000" lon="12.714190000">
<ele>1752.000000</ele>
<time>2012-05-01T08:00:33Z</time>
</trkpt>
<trkpt lat="47.410330000" lon="12.714160000">
<ele>1753.000000</ele>
<time>2012-05-01T08:01:06Z</time>
</trkpt>

As you can see every tag <time>2012-05-01T08:00:00Z</time> has another code, the whole tag with the time has to be deleted.

I did try with search and replace but did not find out how to do that sad smiley

please help

---
edit from "help needed" to "How to remove that text from file?"

Edited 2 time(s). Last edit at 2014-11-18 06:37 by Stefan.

Options: Reply | Quote | Up ^


#2 Re: help needed

Posted by: pspad | Date: 2014-11-17 19:34 | IP: IP Logged

1. Search / Replace dialog with regular expressions

Search: <time>.*</time>
Replace:
[x]Regular expression

After it use menu Edit / Lines manipulation / Remove blank lines

------------------------------------------------------------------

2. Find + Copy nonmatching

Search: <time>.*</time>
Replace:
[x]Regular expression
[x]Copy nonmatching

press copy button and you will get your content in new editor window

Options: Reply | Quote | Up ^


#3 Re: help needed

Posted by: patrickh111 | Date: 2014-11-17 20:06 | IP: IP Logged

Thanks, it works, i did try <time>*</time> just a point away smiling smileysmiling smileysmiling smiley

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR