You are here: PSPad forum > English discussion forum > Talk about regular expressions
Posted by: maki | Date: 2020-02-03 23:49 | IP: IP Logged
Does not work on PSPad: Carriage Return
I want:
Find: \r
Replace with: abc
Quote:[Window Title]
Info[Content]
Occurrence of "\r" was found 0 times[OK]
Edited 2 time(s). Last edit at 2020-02-03 23:55 by maki.
Posted by: pspad | Date: 2020-02-04 04:16 | IP: IP Logged
aswitch to HEX mode, replace and switch back
Posted by: maki | Date: 2020-02-04 17:01 | IP: IP Logged
I want to correct the expression to match:
website\.ru/(\d+)/(\d+)/(\d+)/(\d+)|website\.ru/(\d+)/(\d+)/(\d+-\d+)|website\.ru/avtor/[0-9a-z]$
website.ru/2020/03/87/1276
website.ru/2020/03/970-1276
website.ru/avtor/example1
website.ru/avtor/8765example10
Edited 2 time(s). Last edit at 2020-02-04 17:02 by maki.
Posted by: pspad | Date: 2020-02-04 18:14 | IP: IP Logged
You are near correct
add "+" char before the last "$"
Posted by: maki | Date: 2020-02-04 18:45 | IP: IP Logged
I would like to add at the end of the line, but it join the lines, which is wrong.
Regex: (\r\n|\r|\n)
Replace with: #.txt
website.com/example111/wxsx
website.com/example111/wxsx#.txt
Edited 3 time(s). Last edit at 2020-02-04 18:46 by maki.
Posted by: pspad | Date: 2020-02-04 19:37 | IP: IP Logged
You are looking for the line ends and replace it with *.txt
Posted by: maki | Date: 2020-02-04 20:02 | IP: IP Logged
Yes, but not *.txt only #.x
x -> any "operator" - not extension! but example #.txt
Edited 4 time(s). Last edit at 2020-02-04 20:05 by maki.
Posted by: maki | Date: 2020-02-05 16:30 | IP: IP Logged
How do separate lines by adding anything to the end of any character on each line?
Posted by: pspad | Date: 2020-02-05 16:40 | IP: IP Logged
serch for any existing char
replace with \n
Do it from the end of file with back direction
Edited 1 time(s). Last edit at 2020-02-05 16:40 by pspad.
Posted by: maki | Date: 2020-02-05 16:54 | IP: IP Logged
Not working.
Edited 1 time(s). Last edit at 2020-02-05 16:55 by maki.
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