# StrX() [v1.0-196c]

作者: SKAN 最近更新时间: 20091121

StrX() is a wrapper that extends SubStr()'s functionality. It accepts two strings for extremes ( begin & end ) and extracts the text in between them.

StrX( H, BS="",BO=0,BT=1, ES="",EO=0,ET=1, ByRef N="" )

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

#### 备注

The documentation is part of authors original posting about this function.

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

#### 许可

不存在

#### 示例

    ; #Include StrX.ahk
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%

    UrlDownloadToFile, http://www.autohotkey.com/forum/rss.php, ahkrss.xml   ; 01
    FileRead, xml, ahkrss.xml                                                ; 02

    While Item  := StrX( xml ,  "" ,N,0,  "" ,1,0,  N )         ; 03
          Title := StrX( Item,  "",1,7,  "",1,8     )         ; 04
        , Link  := StrX( Item,  "" ,1,6,  "" ,1,7     )         ; 05
        , List  .= "`n`n" A_Index ")`t" Title "`n`t" Link                    ; 06

    MsgBox, 64, Latest Posts on AHK Forum, %List%                            ; 07