If I run the following:
Code:
FileRead, OutputVar, filein.txt
Sort, OutputVar, N
;--------------------------- Regex here.
FileAppend, %OutputVar%, fileout.txt
I want to run a loop read but only on the lines which begin with an integer.
Code:
Loop, read, fileout.txt
{
Pos := RegExMatch(A_LoopReadLine, """([^""]*)""", var)
FileAppend, %var1%`n, tmp2.txt
}
It would be better if I could run RegEx after the Sort, instead of creating a "fileout" then doing a loop read. NOTE: The input file HAS to be sorted numerically before RegEx.
Thanks for your help!
