re(2): parsing a INI formatted file

1999-11-03 Thread Leston Drake
Dave, thanks for sharing your scripts! I figured that matchText could be used to solve this problem, but I couldn't figure out the syntax for the regex parameter (what does "regex" mean anyway?). Could you help explain what the following mean, when used with the MatchText function? 1. From

re(2): parsing a INI formatted file

1999-11-03 Thread Dave Cragg
At 8:23 AM -0700 3/11/1999, Leston Drake wrote: Could you help explain what the following mean, when used with the MatchText function? I can try, but it's a long time since I put them together. Regex expressions must be the most unreadable form of writing devised. Almost as bad as a tax

re(2): parsing a INI formatted file

1999-11-03 Thread Leston Drake
Yes, this is the fastest. I wrote a function that uses offset() rather extensively. They both work well, but this one here is about 36% faster. It's also more intuitive than mine. (Note that the line "put 1 into state" below should read "put True into groupFound") Also thanks to Dave Cragg as