You are here: PSPad forum > English discussion forum > Regex

Regex

#1 Regex

Posted by: maki | Date: 2014-12-19 12:51 | IP: IP Logged

Please regex

y:\SS zym 8\919172850_000\Z_kWe2UG8.jpg
z:\ss 8\-21\xhSvkW_-.jpg

delete only "bold"

Edited 1 time(s). Last edit at 2014-12-19 12:57 by maki.

Options: Reply | Quote | Up ^


#2 Re: Regex

Posted by: maki | Date: 2014-12-19 13:17 | IP: IP Logged

Regex other

(\d+)_(\d+)\

$1

Please correct REGEX "\"

12345_12345\

Edited 2 time(s). Last edit at 2014-12-19 13:18 by maki.

Options: Reply | Quote | Up ^


#3 Re: Regex

Posted by: pspad | Date: 2014-12-19 13:57 | IP: IP Logged

Search: ^.*?\\.*?\\(.*?)\\.*
Replace: $1

Condition: there must be 2x \\ before folder you want

Options: Reply | Quote | Up ^


#4 Re: Regex

Posted by: maki | Date: 2014-12-28 20:28 | IP: IP Logged

^.*?\\.*?\\(.*?)\\.*
$1

Not found anything.
Correct regex.

.+\\([^\\]+?)\\[^\\]+?\.jpg
$1 or \1

Edited 3 time(s). Last edit at 2014-12-28 20:34 by maki.

Options: Reply | Quote | Up ^


#5 Re: Regex

Posted by: pspad | Date: 2014-12-29 07:29 | IP: IP Logged

It worked for me for examples you provided. I tested it before I sent you answer.
If you used it on different content...
Or maybe you forget to check regular expression switch.

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