You are here: PSPad forum > English discussion forum > Finding and replacing range of numbers

Finding and replacing range of numbers

#1 Finding and replacing range of numbers

Posted by: krakovsky | Date: 2020-07-21 13:47 | IP: IP Logged

Hello,
I have a really long set of numbers. All are in range 0-100 and mostly they are exactly 0 or 100. How can I specify to PSPad, that I want to find values within the range let’s say 40-60 and replace them with other value?

And is it possible somehow specify, that numbers in range 40-60 I do not want to replace with exact number, but I want to add to every number in this range a specified value. (example: pspad finds number 51, add 10 to it and write instead 51->61)

Thank you.

Options: Reply | Quote | Up ^


#2 Re: Finding and replacing range of numbers

Posted by: pspad | Date: 2020-07-21 14:31 | IP: IP Logged

Hello
It isnt possible by search/replace
You can use user converter what supports regular expressions,
create list of replacements and fire it at once on your file

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