Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: regexp(ing) Backus-Naurish expressions ... Date: Sun, 10 Mar 2013 22:39:22 +0100 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net hfKQwC0D+b6MdxwZm3TIOwGdXxfILo8OhsQ828eeo0VCpv4qkTz9PuxK8wucqk4DI= Cancel-Lock: sha1:VrWfzfxNfcf98meYv1DBNdVpEoc= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: X-Antivirus: avast! (VPS 130310-1, 10.03.2013), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.java.programmer:22875 On 10.03.2013 15:57, Roedy Green wrote: > On Sun, 10 Mar 2013 02:27:32 +0000 (UTC), > qwertmonkey@syberianoutpost.ru wrote, quoted or indirectly quoted > someone who said : > >> Any ideas you would share? > > Regexes are quite limited. I beg to differ: it's amazing what you can do with them. Especially modern RX engines are usually much more powerful than those needed for the class of regular languages. > When you bang into their limits you can > write a finite state machine or use a parser. What limitations would make me want to write a FSM instead by hand? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/