You are here: PSPad forum > English discussion forum > Regular Expression - delete all between "<" and ">" ?

Regular Expression - delete all between "<" and ">" ?

#1 Regular Expression - delete all between "<" and ">" ?

Posted by: hlk123 | Date: 2017-09-29 09:02 | IP: IP Logged

Hello

How can PsPad with the Help of Regular Expression (?) delete all characters between "<" and ">" ?
See below
Thank you.

Search: ?
Replace: ?
V Regular Expression

From:
-----
2
00:02:03,009 --> 00:02:07,640
when you've had<font color="#CCCCCC"> your tea catcher</font><font color="#E5E5E5"> would</font>

3
00:02:06,229 --> 00:02:10,399
you help me<font color="#CCCCCC"> out</font><font color="#E5E5E5"> and take mr. bindler's</font>

--

To:
---
2
00:02:03,009 --> 00:02:07,640
when you've had your tea catcher would

3
00:02:06,229 --> 00:02:10,399
you help me out and take mr. bindler's

--

Edited 1 time(s). Last edit at 2017-10-05 06:35 by Stefan.

Options: Reply | Quote | Up ^


#2 Re: Regular Expression - how?

Posted by: pspad | Date: 2017-09-29 09:54 | IP: IP Logged

Hello

You can use function from the HTML menu / Conversion / Remove HTML tags

If you want to use reg. expressions:
Search: ^(.*)\<.*\>(.*)
Replace: $1$2
[x] Regular expressions

Options: Reply | Quote | Up ^


#3 Re: Regular Expression - how?

Posted by: hlk123 | Date: 2017-09-29 18:13 | IP: IP Logged

Hello

After many trials&errors I have the solution.

Search: <[^>]*>
Replace:
[x] Regular Expression

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