Code: Select all
Some text here1
Some text here2
12345 TEXT ;I need only number / not text
165465465465
nlsanb@email.com
Do I need to loop? Or what do I need todo?
Code: Select all
Some text here1
Some text here2
12345 TEXT ;I need only number / not text
165465465465
nlsanb@email.com
Code: Select all
Numpad0::
Loop, Parse, Clipboard, `n, `r ; Split on each line break
{
if A_Index = 3 ; If it's the 3rd round:
{
var3 = %A_LoopField% ; Get value
var3 := RegExReplace(var3, "[^a-z]*\K[a-z]*") ; Remove all alpha-numericals
}
else ; For all other rounds:
{
var%A_Index% = %A_LoopField% ; Get values
}
}
return
Worked great, It did count the empty rows as well.Scr1pter wrote: ↑12 Jan 2019, 17:33Not tested, but I believe it will be a good starting help for you.Code: Select all
Numpad0:: Loop, Parse, Clipboard, `n, `r ; Split on each line break { if A_Index = 3 ; If it's the 3rd round: { var3 = %A_LoopField% ; Get value var3 := RegExReplace(var3, "[^a-z]*\K[a-z]*") ; Remove all alpha-numericals } else ; For all other rounds: { var%A_Index% = %A_LoopField% ; Get values } } return