help need to "read from file until xxxx OR yyyy OR zzzz"

Dar Scott dsc at swcp.com
Sun Dec 12 20:14:58 EST 2004


On Dec 12, 2004, at 4:19 PM, Alex Tweedly wrote:

> Can't you just do
>  matchText(char currOffset to -1 of theString, tRegEx, tVars)

Yes, but that doesn't avoid copying of the "rest" part in repeated 
matching.

>
> Or, if that won't work,
>   put "." & currOffset & tRegEx into tempRegEx
>   matchText(theString, tempRegEx, tVars)
> (so the first match is the .N where N is the offset ) ?
> (Ugly, but I've seen something like this used before in Perl, where 
> ugliness seemed natural :-)

If this is fast, then I like this kind of approach.

Dar
****************************************
     Dar Scott Consulting
     http://www.swcp.com/dsc/
     Programming Services
****************************************



More information about the use-livecode mailing list