$Data = GetFile("c:\temp\msg.txt") $NumberOfMessages = RegExCount(RegExEscape("$GSAKMSG$"),$data) $mCount = 0 While $mCount < $NumberOfMessages $mCount = $mCount + 1 $Message = Extract($Data,"$GSAKMSG$",$mCount) $Header = Extract($Message,"$GSAKBODY$",1) $Body = Extract($Message,"$GSAKBODY$",2) # Insert code here to interrogate $Header and $Body EndWhile |