From: Brian Candler Date: 2009-12-22T00:39:15+09:00 Subject: Re: Alternate Regular Expressions? Phlip wrote: > rx = match('foo') or match('bar') # like /(foo|bar)/ Aside: you either need to use '||' instead of 'or', or you need extra parentheses, i.e. rx = (match('foo') or match('bar')) otherwise it parses as (rx = match('foo')) or match('bar') I don't really have a problem with regexps as they are. Although I'd like to have more limited, *true* regexps, which compile to a DFA and never backtrack. -- Posted via http://www.ruby-forum.com/.