Author: Tuncay Last Modified: 20090412
strTail(): It assumes that lines are broken with
(preceding `r is ignored). With second parameter, the number of last lines can be specified.
strTail_last(): The second one should work faster, I think. The first parameter must be the name of the variable (ByRef) and also it does not have any second parameter.
This can be useful to read log files.
strTail(_Str, _LineNum = 1)
strTail_last(ByRef _Str)
For more details of the functions's parameters and return value, please see it's source code.
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=262371#262371
The functions is an open source item under the CC By 3.0 license. For details, please see http://creativecommons.org/licenses/by/3.0/
; #Include strTail.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Text = ( Text of Line 1 Text of Line 2 Text of Line 3 Text of Line 4 Text of Line 5 ) MsgBox % "'" . strTail(Text, 2) . "'" MsgBox % "'" . strTail_last(Text) . "'"