JoeWinograd wrote: ↑08 Dec 2024, 04:23
Hi @GEOVAN,
I don't know if there's a way to do it inside the
regexreplace (I'm sure flyingDman will let us know if there is), but a simple way to do it is to put
Sort MyText,N either before or after
MyText:=regexreplace(MyText,"0+(\d+)","$1") (I suggest reading the doc for
Sort, which explains that the
N option does a numeric sort). Regards, Joe
THANK YOU VERY VERY MUCH!!! It works perfect!
I like the SORT command of ahk, and i try it to the following example:
For example, let s say we have the following in the text file:
L000000011
L00030
L002
L01
Very strange - By applying the Sort MyText,N , we get:
L00030
L002
L01
L000000011
Why this strange phenomenon, please?
How can we modify the wonderful command Sort MyText,N , in order to take into account the case that the number is after letters, please , so the desired result to be ALPHABETICAL and NUMERICAL ORDER at the same time as the following, please ? (Like WINDOWS EXPLORER SHOWING)
L01
L002
L000000011
L00030