On Tue, 6 Nov 2001, Hal E. Fulton wrote: > > Which allows some infix arithmetic on regexps, respectively: sequence, > > negative lookahead, positive lookahead, alternative, fixed repetition. > That's very interesting. I had been thinking about > some ways to enhance regexes, but this is a new > technique to me. > Do you have examples of using these? No, I deleted all relevant code because it didn't work properly. To make any use of the Regexp class worthwhile to me, Regexps should support embedded Ruby expressions, access to info like which branch of an alternative was chosen, failure handling, and continuations based on the availability of data. So I decided to go the hand-crafted parser way because I didn't want to use a parser generator for that. (For anything bigger I would've used a parser generator, or I'd have used regexps but with the restriction that the whole file must be loaded as a string beforehand). ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju