Re: clisp, regexp:match, and subgroups? [SOLVED]
- From: Mirko Vukovic <mirko.vukovic@xxxxxxxxx>
- Date: Wed, 2 May 2012 17:11:15 -0700 (PDT)
On Wednesday, May 2, 2012 4:10:29 PM UTC-4, Mike wrote:
On 2012-05-02, Mike <mikee@xxxxxxx> wrote:
On 2012-05-02, Mirko Vukovic <mirko.vukovic@xxxxxxxxx> wrote:
On Wednesday, May 2, 2012 12:49:52 PM UTC-4, Mike wrote:
Thank you everyone on my previous (loop...) question. I understand now
more than I did. My next stumbling stone is (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?
Mike
multiPLE-value-bind
Mirko,
Thank you. Do you have an example of using it?
Mike
Turns out I can do it this way:
(regexp:match-start (cadr (multiple-value-list (regexp:match pattern z))))
I got this hint from: <http://www.lispworks.com/documentation/HyperSpec/Body/f_vals_l.htm>
Mike
You got it - hyperspec is your friend :-)
.
- References:
- clisp, regexp:match, and subgroups?
- From: Mike
- Re: clisp, regexp:match, and subgroups?
- From: Mirko Vukovic
- Re: clisp, regexp:match, and subgroups?
- From: Mike
- Re: clisp, regexp:match, and subgroups? [SOLVED]
- From: Mike
- clisp, regexp:match, and subgroups?
- Prev by Date: Re: equivalent PERL construct in LISP?
- Next by Date: Re: ACL chapter 2 exercise 8(b)
- Previous by thread: Re: clisp, regexp:match, and subgroups? [SOLVED]
- Next by thread: Re: clisp, regexp:match, and subgroups? [SOLVED]
- Index(es):
Relevant Pages
|