Hello -- On Tue, 6 Nov 2001, Mathieu Bouchard wrote: > > 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. Well, one out of four ain't bad :-) irb 10> a = "abc" ==>"abc" irb 11> /#{"abcd".chop}/.match(a)[0] ==>"abc" David -- David Alan Black home: dblack / candle.superlink.net work: blackdav / shu.edu Web: http://pirate.shu.edu/~blackdav