[cl-ppcre-devel] Using scan

Dave Pawson dave.pawson at gmail.com
Mon Jul 7 12:14:31 UTC 2008


2008/7/7 Gary King <gwking at metabang.com>:
> Hi Dave,
>
> If I understand your question correctly, you want to look at
> multiple-value-bind. This lets you bind multiple return values (hence the
> name :->). E.g., (completely untested code)
>
> (mulitple-value-bind (a b c d array-1 array-2)
>  (cl-ppcre:scan ...)
>  ;; now a, b, c, d, array-1 and array-2 are bound to the values returned
> from scan

Simpler question then.

How to test for a simple, full match?

regex="ABC" testString="ABC"

scan or scan-to-strings seems to be the correct choice?

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk



More information about the Cl-ppcre-devel mailing list