From: Mike Eggleston <mikeegg1@ma...> - 2012-05-02 18:18:19
I'm trying to understand (regexp:match...). I have this function
where it is matching a pattern. I'm trying to extract that pattern.
I found where the POSIX regexps will match subgroups. Great. I have the
matching working. Now, how do I see any subgroup other than the first
one? I found a mention of a (multi-value-bind...), but clisp says that
function doesn't exist. How do I access the other-than-first matches?
From: Mike Eggleston <mikeegg1@ma...> - 2012-05-02 21:29:08
On Wed, 02 May 2012, Sam Steingold might have said:
> > * Mike Eggleston <zvxrrtt1@...> [2012-05-02 12:23:37 -0500]:
> > I found a mention of a (multi-value-bind...), but clisp says that
> > function doesn't exist.
> where is `multi-value-bind' mentioned?
I misspelled. It should have been "multipule-value-bind". I solved my
issue using "multiple-value-list":
(setq match (cadr (multiple-value-list (regexp:match pattern buf))))