From: Nikolai Weibull Date: 2004-11-19T00:05:18+09:00 Subject: Re: About Regular Expressions * Francis Hwang [Nov 18, 2004 15:50]: > >I did not accuse any specific entity of misdoings, nor did I consider > >your posts; which are rather old by now. I do not consider a post > >discussing the arity of regular expressions equivalent with one that > >asks if it is a bug that /[...a-b]/ doesn't match '-'. The first one > >is a rather esoteric question, which certainly proved that you > >weren't a newbie; the second is rather more newbyish as it shows > >unfamiliarity with one of the most basic regular expressions > >shorthands. > As the person who posted that question, let me just say that while > there are lots of Ruby details I forget, you couldn't reasonably call > me a newbie. And that's why I didn't do that. I said that the question in question (hoho) was a newbyish in nature. I didn't pass any judgement about your abilities as a programmer. > One reason, I think, is that the char class I was dealing with had > other characters that distracted me: > /^[0123456789.-*]+/ > ... which isn't certainly a sign of programming genius, but I like to > think is the sort of odd blind spot that happens to most programmers > from time to time. I'd also like to think that most of what I post > here isn't nearly that newbie-ish, but then I'm obviously not the best > judge of that. I don't keep tabs on what people usually post, so I can't comment on that. Anyway, do you, as the asker of the question that triggered my posting, feel that using regular expressions is difficult and, if so, that there could be better documentation, especially for Ruby? nikolai -- ::: 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);}