Re: Comments on regex-opt

* 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 UTC