You are here: PSPad forum > English discussion forum > Re: Regex "Change Number Format"

Re: Regex "Change Number Format"

#1 Regex "Change Number Format"

Posted by: maki | Date: 2020-05-10 17:59 | IP: IP Logged

How to Find:
1-9
and
Replace with:
01-09

Example:
4,6
8,15
10,11
10,12
4,9
9,13
4,6

Replace with:
04,06
08,15
etc.

Edited 1 time(s). Last edit at 2020-05-10 18:00 by maki.

Options: Reply | Quote | Up ^


#2 Re: Regex "Change Number Format"

Posted by: Professor Bernd | Date: 2020-05-10 19:54 | IP: IP Logged

What does this have to do with PSPad? Why are you so rude, disrespectful and pushy?

The author of PSPad is more busy answering your troll questions and has no time for the other users. You annoy! Please go away! sad smiley

Edited 1 time(s). Last edit at 2020-05-10 19:56 by Professor Bernd.

Options: Reply | Quote | Up ^


#3 Re: Regex "Change Number Format"

Posted by: maki | Date: 2020-05-10 23:26 | IP: IP Logged

solved

2 19 3 1996 77 75 71 69 67 64 63 62 59 49 48 44 39 35 33 28 19 15 12 06
3 21 3 1996 77 75 73 72 69 54 52 48 45 28 26 20 19 17 16 15 07 06 04 02
4 22 3 1996 75 68 67 64 61 60 49 44 38 36 35 34 33 30 25 19 17 15 08 03
5 25 3 1996 79 75 67 66 61 60 55 45 44 42 30 29 27 26 22 18 14 11 10 02
6 26 3 1996 72 70 69 64 61 60 57 55 45 44 37 32 31 30 22 20 19 12 10 04
7 28 3 1996 78 77 73 72 63 62 53 49 40 39 35 32 26 15 13 12 11 09 04 01

Options: Reply | Quote | Up ^


#4 Re: Regex "Change Number Format"

Posted by: pspad | Date: 2020-05-11 03:13 | IP: IP Logged

Wrong

2 19 3 1996 77 75 71 69 67 64 63 62 59 49 48 44 39 35 33 28 19 15 12 06

Options: Reply | Quote | Up ^


#5 Re: Regex "Change Number Format"

Posted by: maki | Date: 2020-05-11 06:29 | IP: IP Logged

The ordinal number and date does not matter. Just the next part of the twenty numbers in the cells.

Edited 1 time(s). Last edit at 2020-05-11 06:30 by maki.

Options: Reply | Quote | Up ^


#6 Re: Regex "Change Number Format"

Posted by: pspad | Date: 2020-05-11 06:47 | IP: IP Logged

You put few lines without any explanation with "solved" note. It has no sense for others. Same as my add - it doesn't tell anything to anybody without explanation.

Only you know what the line contains. If you don't want to add explanation, don't post such senseless adds here

Options: Reply | Quote | Up ^


#7 Re: Regex "Change Number Format"

Posted by: maki | Date: 2020-05-11 07:59 | IP: IP Logged

And how are your answers different? - You say "use the script" and you will not explain what script and how to use it!!!

Options: Reply | Quote | Up ^


#8 Re: Regex "Change Number Format"

Posted by: pspad | Date: 2020-05-11 08:39 | IP: IP Logged

I answered use the scripting. It means you need to write script what will handle your problem - make transformation, modify numbers, make calculation e.t.c.
Because you never write whole problem, write any script for you is waste of time. Your answer would be: "it doesn't work" and you will tell us that real lines looks totally different from your example.

Options: Reply | Quote | Up ^


#9 Re: Regex "Change Number Format"

Posted by: maki | Date: 2020-05-11 12:02 | IP: IP Logged

The script, actually an executable program, has already been written and does everything automatically.

Options: Reply | Quote | Up ^


#10 Re: Regex "Change Number Format"

Posted by: maki | Date: 2020-05-11 12:04 | IP: IP Logged

i.postimg.cc

format digits:
dd

Options: Reply | Quote | Up ^






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