# strTail

作者: Tuncay 最近更新时间: 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)

关于函数的参数和返回值, 请参阅其源码.

#### 备注

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?p=262371#262371

#### 许可

此函数(集)是基于 CC By 3.0 许可的开源项目. 想了解许可详情, 请参见 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) . "'"