Email list hosting service & mailing list manager

repeating patterns and ... Michael Montague (17 Oct 2013 03:31 UTC)
Re: repeating patterns and ... Peter Bex (17 Oct 2013 07:03 UTC)

repeating patterns and ... Michael Montague 17 Oct 2013 03:31 UTC

Scheme already has one way of specifying repeating patterns: ... How
about using similar syntax for regular expressions?

(* <sre>) would change to (<sre> ...)

The general case of (** <from> <to> <sre>) could change to (<sre> ...
<from> <to>)

or to (<sre> (... <from> <to>))

(? <sre>) changes to (<sre> ... 0 1) or to (<sre> (... 0 1))
(+ <sre>) changes to (<sre> ... 1) or to (<sre> (... 1))

Michael.