Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: regexp(ing) Backus-Naurish expressions ... Date: Mon, 11 Mar 2013 18:31:30 -0400 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 11 Mar 2013 22:28:53 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="23049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199CXX5ram9a1qajFxefbA6" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: Cancel-Lock: sha1:ismREBwz4ECSS/R4VNw88Fu3sCE= Xref: csiph.com comp.lang.java.programmer:22908 On 3/11/2013 6:00 PM, Joshua Cranmer 🐧 wrote: > [...] > ([()<>,:;@])|(?:[^\\"]|\\.)*|\[(?:[^\\\]]|\\.)*\]|(?:\\.|[^ > \t\r\n()<>,:;@["])+ > > That is an example of a production regular expression I use specifically > for tokenizing. [...] As Ed Post noted nearly thirty years ago: It has been observed that a TECO command sequence more closely resembles transmission line noise than readable text. -- "Real Programmers Don't Use PASCAL" Nobody I know of uses TECO any more, but regexes satisfy people's craving for gibberish. -- Eric Sosman esosman@comcast-dot-net.invalid