From gwking at metabang.com Mon May 1 01:25:23 2006 From: gwking at metabang.com (Gary King) Date: Sun, 30 Apr 2006 21:25:23 -0400 Subject: [cl-ppcre-devel] Multi-line-mode confusion... Message-ID: <8AB7C2BD-13CC-4FFE-A31D-B3DDA2EA2477@metabang.com> If I can pull people attention away from the International Lisp conference (!)... Perhaps I'm missing something but both > (cl-ppcre:scan > (cl-ppcre:create-scanner "(.*?)c.*?") > "a > b > c > d > e") and > (cl-ppcre:scan > (cl-ppcre:create-scanner "(.*?)c.*?" :multi-line-mode t) > "a > b > c > d > e") return the same values: 4 5 #(4) #(4). I expected the second form to return 0 4 #(0) #(4). Where have I gone wrong... thanks. -- Gary Warren King metabang.com http://www.metabang.com/ (413) 210 7511 gwking on #lisp (occasionally) From ctdean at sokitomi.com Mon May 1 02:42:56 2006 From: ctdean at sokitomi.com (Chris Dean) Date: Sun, 30 Apr 2006 19:42:56 -0700 Subject: [cl-ppcre-devel] Multi-line-mode confusion... In-Reply-To: <8AB7C2BD-13CC-4FFE-A31D-B3DDA2EA2477@metabang.com> (Gary King's message of "Sun, 30 Apr 2006 21:25:23 -0400") References: <8AB7C2BD-13CC-4FFE-A31D-B3DDA2EA2477@metabang.com> Message-ID: >> (cl-ppcre:scan >> (cl-ppcre:create-scanner "(.*?)c.*?" :multi-line-mode t) Perhaps you mean :single-line-mode ? The Perl terminology can be confusing (I always have to look it up!) cl-ppcre says: The symbols :CASE-INSENSITIVE-P, :CASE-SENSITIVE-P, :MULTI-LINE-MODE-P, :NOT-MULTI-LINE-MODE-P, :SINGLE-LINE-MODE-P, and :NOT-SINGLE-LINE-MODE-P are equivalent to Perl's embedded modifiers "(?i)", "(?-i)", "(?m)", "(?-m)", "(?s)", and "(?-s)". perlre says: m Treat string as multiple lines. That is, change "^" and "$" from matching the start or end of the string to matching the start or end of any line anywhere within the string. s Treat string as single line. That is, change "." to match any character whatsoever, even a newline, which normally it would not match. Regards, Chris Dean Gary King writes: > If I can pull people attention away from the International Lisp > conference (!)... > > Perhaps I'm missing something but both > >> (cl-ppcre:scan >> (cl-ppcre:create-scanner "(.*?)c.*?") >> "a >> b >> c >> d >> e") > > and > >> (cl-ppcre:scan >> (cl-ppcre:create-scanner "(.*?)c.*?" :multi-line-mode t) >> "a >> b >> c >> d >> e") > > return the same values: 4 5 #(4) #(4). > > I expected the second form to return 0 4 #(0) #(4). Where have I gone > wrong... > > thanks. > -- > Gary Warren King > metabang.com > http://www.metabang.com/ > (413) 210 7511 > gwking on #lisp (occasionally) > > > _______________________________________________ > cl-ppcre-devel site list > cl-ppcre-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-ppcre-devel From gwking at metabang.com Mon May 1 13:28:40 2006 From: gwking at metabang.com (Gary King) Date: Mon, 1 May 2006 09:28:40 -0400 Subject: [cl-ppcre-devel] Multi-line-mode confusion... In-Reply-To: References: <8AB7C2BD-13CC-4FFE-A31D-B3DDA2EA2477@metabang.com> Message-ID: Ack. Don't I feel silly. Thanks Chris. On Apr 30, 2006, at 10:42 PM, Chris Dean wrote: > >>> (cl-ppcre:scan >>> (cl-ppcre:create-scanner "(.*?)c.*?" :multi-line-mode t) > > Perhaps you mean :single-line-mode ? > > The Perl terminology can be confusing (I always have to look it up!) > cl-ppcre says: > > The symbols :CASE-INSENSITIVE-P, :CASE-SENSITIVE-P, > :MULTI-LINE-MODE-P, :NOT-MULTI-LINE-MODE-P, :SINGLE-LINE-MODE-P, > and > :NOT-SINGLE-LINE-MODE-P are equivalent to Perl's embedded modifiers > "(?i)", "(?-i)", "(?m)", "(?-m)", "(?s)", and "(?-s)". > > perlre says: > > m Treat string as multiple lines. That is, change "^" and > "$" from > matching the start or end of the string to matching the > start or > end of any line anywhere within the string. > > s Treat string as single line. That is, change "." to > match any > character whatsoever, even a newline, which normally it > would not > match. > > Regards, > Chris Dean > > Gary King writes: >> If I can pull people attention away from the International Lisp >> conference (!)... >> >> Perhaps I'm missing something but both >> >>> (cl-ppcre:scan >>> (cl-ppcre:create-scanner "(.*?)c.*?") >>> "a >>> b >>> c >>> d >>> e") >> >> and >> >>> (cl-ppcre:scan >>> (cl-ppcre:create-scanner "(.*?)c.*?" :multi-line-mode t) >>> "a >>> b >>> c >>> d >>> e") >> >> return the same values: 4 5 #(4) #(4). >> >> I expected the second form to return 0 4 #(0) #(4). Where have I gone >> wrong... >> >> thanks. >> -- >> Gary Warren King >> metabang.com >> http://www.metabang.com/ >> (413) 210 7511 >> gwking on #lisp (occasionally) >> >> >> _______________________________________________ >> cl-ppcre-devel site list >> cl-ppcre-devel at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-ppcre-devel -- Gary Warren King metabang.com http://www.metabang.com/ (413) 210 7511 gwking on #lisp (occasionally) From edi at agharta.de Wed May 24 18:39:51 2006 From: edi at agharta.de (Edi Weitz) Date: Wed, 24 May 2006 20:39:51 +0200 Subject: [cl-ppcre-devel] New version 1.2.14 Message-ID: ChangeLog: Version 1.2.14 2006-05-24 Added missing tag in docs (thanks to Wojciech Kaczmarek) Fixed IMPORT statement for LW Download: http://weitz.de/files/cl-ppcre.tar.gz