From: Nikolai Weibull Date: 2004-01-21T07:12:02+09:00 Subject: Re: regex help * Zach Dennis [Jan, 20 2004 23:10]: > I've got the book Nikolai, and tonight after the office closes my goal > is to dive into your code and Robert's code and find out why. Your > knowledge on this amazes me! hehe, eh, thanks i suppose. Its covered in Chapter 6. It's a use of what Friedl calls "Unrolling-the-Loop" for regexes. It's one of the coolest regex optimizations ever deviced in my opinion. nikolai P.S. Sorry for not being able to explain why (or more interestingly how) in more detail, but Friedl spends some 60-70 pages on this, so it wouldn't really be possible. D.S. -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}