> On Feb 6, 2016, at 11:13 AM, Matt Wette <[email protected]> wrote: > > I have always missed the ease provided by Perl in throwing a string at a list > of regular expressions. I have thought it would be nice if the (ice-9 > regex) module would provide something comparable . So I started work on a > macro “regex-case”. Code attached. > Comments on syntax appreciated. — Matt >
> I was thinking the above expansion has some chance (if it lives in the regex > module?) to memoize the make-regexp part during optimization. I am going to try to optimize by using eval-when and narrowing the syntax to use only constant strings for the case items. I will post update if I can get it working. Matt
