From: Chris Pine Date: 2003-04-17T07:26:47+09:00 Subject: Re: regular expressions ----- Original Message ----- From: "Hal E. Fulton" I'd like to write a complex regex in a more readable form which could then be "compiled" to a Ruby regex. (Now that I think about it, the analogy between regex notation and machine language is not a bad one.) ---------------------------- It's important, however, not to confuse "the regular language described by a regular expression" with "a language for building objects of the class Regexp". For example, the current regexp literal is a (yucky) language for building Regexps, but `a+' is *not* a member of the regular language it describes, which only has words with 1 or more `a's in it. You see what I'm saying? (I'm not even sure I understood you right!) ---------------------------- Here's a very rough first effort. (One too simple really.) phone = RegexLang.new(<