W3C home > Mailing lists > Public > www-archive@w3.org > January 2006

Re: Comments on regex-opt

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 20 Jan 2006 20:41:21 +0100
To: Joel Yliluoma <bisqwit@iki.fi>
Cc: www-archive@w3.org
Message-ID: <42f2t11d1aj85pvi5vi5oaihuoj9fcqt2p@hive.bjoern.hoehrmann.de>

* Joel Yliluoma wrote:
>Thank you for your feedback!

The latest version gives

  % regex-opt "2322332323"
  2322

which seems like a bug. And some additions to the test suite:

  (yz|)x                                   => (yz)?x
  (xy)*xy                                  => (xy)*
  (xyx(yx)*)|x                             => x(yx)*
  (x{1,2}){1,2}                            => x{1,4}
  (((x_\+|)x(_\+x)*|x)_\+|)x               => (x_\+)*x
  (((((x_\+|)x_(\+x)*|x)_\+|)x_\+|)x_\+|)x => (x_\+)*x

:-)
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 20 January 2006 19:40:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 July 2008 08:09:42 GMT