On 7/9/05, Luke Worth <luke / worth.id.au> wrote: > I am wanting to parse large files (of source code) by reading byte by > byte and converting certain patterns into different strings. I can think > of a couple of ways to do this (starting with the source code in a > String): > 1. String#split(//) -> array, then use Array#shift (maybe slow to > convert to array?) > 2. Keep a counter and use String#[] (which seems unrubyish to me) Regex. You know what these patterns are in advance. -austin -- Austin Ziegler * halostatue / gmail.com * Alternate: austin / halostatue.ca