StrX() [v1.0-196c]

Author: SKAN Last Modified: 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="" )

For more details of the functions's parameters and return value, please see it's source code or the document.

Remarks

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

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=51354

License

nonexistent

Example

; #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