m2ym / optima

Optimized Pattern Matching Library for Common Lisp
271 stars 19 forks source link

Update optima.ppcre example #89

Closed deadtrickster closed 11 years ago

deadtrickster commented 11 years ago
CL-USER> (match "2012-11-04"
           ((ppcre "^\\d{4}-\\d{2}-\\d{2}$" year month day)
            (list year month day)))
(NIL NIL NIL)

it should be

(match "2012-11-04"
           ((ppcre "^(\\d{4})-(\\d{2})-(\\d{2})$" year month day)
            (list year month day)))
pw4ever commented 11 years ago

Vote up on this issue.

Overall, the README.md is simple and clear. A motivational paragraph at the beginning would be nice, even something corny as "destructuring-bind on steroids" would bring forth the usefulness of the system better.

Keep up the good work.

m2ym commented 11 years ago

Fixed. Thanks!