From: Robert Klemme Date: 2009-09-08T20:42:35+09:00 Subject: Re: How to convert a "normal" searchstring into regexp 2009/9/8 Fabian Streitel : > that would probably be a good idea for a gem, although I'd > do it with a real parser and tokenizer, as that offers much more > safety than regexps and would also be backwards compatible with 1.8.* As far as I can see you only need a scanner here - there is no CFG that you would have to parse. So why build something that complex when there's a simpler (and probably also faster) solution? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/