From terrence.x.brannon at jpmchase.com Fri Jan 4 22:20:41 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Fri, 4 Jan 2008 17:20:41 -0500 Subject: [cl-ppcre-devel] using cl-ppcre functions without package prefixes Message-ID: Hello, I know this is more of just a pure Lisp question, but i cannot figure out how to get my Lisp program to use cl-ppcre without having to prefix the function calls with 'cl-ppcre' My application is using ASDF to define and load itself: (asdf:defsystem bank-match :description "Approximate bank matching" :author "Terrence M. Brannon" :maintainer "Terrence M. Brannon" :licence "Artistic" :version "1.0" :serial t :depends-on ("cl-ppcre") :components ( (:file "clean") ) ) (in-package :bank-match) (defun crude-hacks (s) "crude hacks :)" (cl-ppcre:regex-replace "head\\s*office" (cl-ppcre:regex-replace "due\\s*from" (cl-ppcre:regex-replace "hapoalim\\s*branch" s "hapoalim bank") " ") " ") ) -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwking at metabang.com Fri Jan 4 22:25:59 2008 From: gwking at metabang.com (Gary King) Date: Fri, 4 Jan 2008 17:25:59 -0500 Subject: [cl-ppcre-devel] using cl-ppcre functions without package prefixes In-Reply-To: References: Message-ID: <467E5D2E-78E5-4E2E-B3AB-E9B3242EE291@metabang.com> Hi Terrance When you define your bank-match package, you want to _use_ cl-ppcre. For example, (defpackage #:bank-match (:use #:common-lisp #:cl-ppcre)) When you use package A in package B, then the exported symbols of A become available in B. HTH, On Jan 4, 2008, at 5:20 PM, terrence.x.brannon at jpmchase.com wrote: > > Hello, I know this is more of just a pure Lisp question, but i > cannot figure out how to get my Lisp program to use cl-ppcre without > having to prefix the function calls with 'cl-ppcre' > > My application is using ASDF to define and load itself: > > (asdf:defsystem bank-match > :description "Approximate bank matching" > :author "Terrence M. Brannon" > :maintainer "Terrence M. Brannon" > :licence "Artistic" > :version "1.0" > :serial t > :depends-on ("cl-ppcre") > :components ( > (:file "clean") > ) > ) > > (in-package :bank-match) > > (defun crude-hacks (s) > "crude hacks :)" > (cl-ppcre:regex-replace > "head\\s*office" > (cl-ppcre:regex-replace > "due\\s*from" > (cl-ppcre:regex-replace > "hapoalim\\s*branch" > s > "hapoalim bank") > " ") > " ") > ) > > > -- > Terrence Brannon - SID W049945 > 614-213-2475 (office) > 614-213-3426 (fax) > 818-359-0893 (cell) > > > > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of any > financial instrument or as an official confirmation of any > transaction. All market prices, data and other information are not > warranted as to completeness or accuracy and are subject to change > without notice. Any comments or statements made herein do not > necessarily reflect those of JPMorgan Chase & Co., its subsidiaries > and affiliates. This transmission may contain information that is > privileged, confidential, legally privileged, and/or exempt from > disclosure under applicable law. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution, or use of the information contained herein (including > any reliance thereon) is STRICTLY PROHIBITED. Although this > transmission and any attachments are believed to be free of any > virus or other defect that might affect any computer system into > which it is received and opened, it is the responsibility of the > recipient to ensure that it is virus free and no responsibility is > accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, > as applicable, for any loss or damage arising in any way from its > use. If you received this transmission in error, please immediately > contact the sender and destroy the material in its entirety, whether > in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures > for disclosures relating to UK legal entities. > > _______________________________________________ > 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 Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM -------------- next part -------------- An HTML attachment was scrubbed... URL: From yazicivo at ttmail.com Fri Jan 4 22:31:06 2008 From: yazicivo at ttmail.com (Volkan YAZICI) Date: Sat, 05 Jan 2008 00:31:06 +0200 Subject: [cl-ppcre-devel] using cl-ppcre functions without package prefixes In-Reply-To: (terrence x. brannon's message of "Fri\, 4 Jan 2008 17\:20\:41 -0500") References: Message-ID: <87ir29gr4l.fsf@ttmail.com> terrence.x.brannon at jpmchase.com writes: > Hello, I know this is more of just a pure Lisp question, but i > cannot figure out how to get my Lisp program to use cl-ppcre without > having to prefix the function calls with 'cl-ppcre' My application > is using ASDF to define and load itself: > > (asdf:defsystem bank-match > ? ? :description "Approximate bank matching" > ? ? :author "Terrence M. Brannon" > ? ? :maintainer "Terrence M. Brannon" > ? ? :licence "Artistic" > ? ? :version "1.0" > ? ? :serial t > ? ? :depends-on ("cl-ppcre") > ...) Append :cl-ppcre into the :use list of your DEFPACKAGE line. For instance: (defpackage :test (:use :cl :cl-ppcre)) Regards. From edi at agharta.de Fri Jan 4 22:43:29 2008 From: edi at agharta.de (Edi Weitz) Date: Fri, 04 Jan 2008 23:43:29 +0100 Subject: [cl-ppcre-devel] using cl-ppcre functions without package prefixes In-Reply-To: (terrence x. brannon's message of "Fri, 4 Jan 2008 17:20:41 -0500") References: Message-ID: On Fri, 4 Jan 2008 17:20:41 -0500, terrence.x.brannon at jpmchase.com wrote: > Hello, I know this is more of just a pure Lisp question, but i > cannot figure out how to get my Lisp program to use cl-ppcre without > having to prefix the function calls with 'cl-ppcre' Your technical question was answered already, but I suspect (I may be wrong, of course) that you make the same mistake many Lisp newbies make - you're confusing packages and systems. A "package" is a first-class Lisp object defined in the ANSI standard. You can read about it here for example: http://gigamonkeys.com/book/programming-in-the-large-packages-and-symbols.html (Read the whole book if you haven't done so already.) A "system" (that's a common usage of the name although there's no fixed definition for it) is something that's defined by a defsystem facility like ASDF - it's more or less a collection of source files plus instructions on how they are to be compiled. Very often there's a system and a package of the same name, like it's the case for CL-PPCRE. That doesn't have to be the case, though. The names could be different, one system could define more than one package or no package at all, you can define a package without defining a system, etc. HTH, Edi. From victor.kryukov at gmail.com Sun Jan 6 09:12:54 2008 From: victor.kryukov at gmail.com (Victor Kryukov) Date: Sun, 6 Jan 2008 03:12:54 -0600 Subject: [cl-ppcre-devel] Potential bug in 1.0.13: LDB prompth when using CL-PPCRE. In-Reply-To: References: Message-ID: Hi SBCL developers, The following program brings LDB> prompt for me. sbcl-bug.lisp ----- (require 'asdf) (asdf:oos 'asdf:load-op 'cl-ppcre) (funcall (cl-ppcre:create-scanner "test") "This is a test") --- victor at esculap:~/src/sbcl-1.0.13$ sbcl --no-userinit --no-sysinit --load ../lisp/sbcl-bug.lisp This is SBCL 1.0.13, an implementation of ANSI Common Lisp. More information about SBCL is available at . SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. ; loading system definition from /home/victor/.sbcl/systems/cl-ppcre.asd into ; # ; registering # as CL-PPCRE fatal error encountered in SBCL pid 20308(tid 47999199878832): no scavenge function for object 0x00f670fc (widetag 0x0) Welcome to LDB, a low-level debugger for the Lisp runtime environment. ldb> I'm using Ubuntu 7.10 on x86-64: victor at esculap:~$ uname -a Linux esculap 2.6.22-14-generic #1 SMP Tue Dec 18 05:28:27 UTC 2007 x86_64 GNU/Linux SBCL is 1.0.13 manually compiled from sources with :SB-THREAD enabled. CL-PPCRE is Edi Weitz's library, version 1.3.2 (ASDF-installable, http://weitz.de). I'd be happy to provide more info if needed. -- Yours Sincerely, Victor Kryukov From edi at agharta.de Sun Jan 6 22:40:26 2008 From: edi at agharta.de (Edi Weitz) Date: Sun, 06 Jan 2008 23:40:26 +0100 Subject: [cl-ppcre-devel] Potential bug in 1.0.13: LDB prompth when using CL-PPCRE. In-Reply-To: (Victor Kryukov's message of "Sun, 6 Jan 2008 03:12:54 -0600") References: Message-ID: On Sun, 6 Jan 2008 03:12:54 -0600, "Victor Kryukov" wrote: > (funcall (cl-ppcre:create-scanner "test") "This is a test") Why are you calling the scanner this way? That's not how it is intended to be done. If you call a highly optimized function with the wrong number of arguments, you shouldn't be surprised if the compiler is confused. Edi. From victor.kryukov at gmail.com Sun Jan 6 23:03:59 2008 From: victor.kryukov at gmail.com (Victor Kryukov) Date: Sun, 6 Jan 2008 17:03:59 -0600 Subject: [cl-ppcre-devel] Potential bug in 1.0.13: LDB prompth when using CL-PPCRE. In-Reply-To: References: Message-ID: Thanks for your clarification, Edi. Now that you mentioned it, I noticed the correct idiom to use create-scanner in scan documentation: * (let ((s (cl-ppcre:create-scanner "(([a-c])+)x"))) (cl-ppcre:scan s "abcxy")) I should say, though, the documentation was a bit unclear (at least to me): documentation for scan never mentioned that you can use a pre-computed scanner instead of regex, and documentation for create-scanner said that it returns a closure - and my interpretation was that you have to call it directly to scan for strings. It's probably my poor lisp knowledge and not your fault, but I'd say it would be helpful to include an example of correct create-scanner usage in the create-scanner section. Thank you very much for all your libraries! Best Regards, Victor. PS. Is your Amazon wish list up-to-date? On Jan 6, 2008 4:40 PM, Edi Weitz wrote: > On Sun, 6 Jan 2008 03:12:54 -0600, "Victor Kryukov" wrote: > > > (funcall (cl-ppcre:create-scanner "test") "This is a test") > > Why are you calling the scanner this way? That's not how it is > intended to be done. If you call a highly optimized function with the > wrong number of arguments, you shouldn't be surprised if the compiler > is confused. > > Edi. > _______________________________________________ > cl-ppcre-devel site list > cl-ppcre-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-ppcre-devel From edi at agharta.de Sun Jan 6 23:31:48 2008 From: edi at agharta.de (Edi Weitz) Date: Mon, 07 Jan 2008 00:31:48 +0100 Subject: [cl-ppcre-devel] Potential bug in 1.0.13: LDB prompth when using CL-PPCRE. In-Reply-To: (Victor Kryukov's message of "Sun, 6 Jan 2008 17:03:59 -0600") References: Message-ID: On Sun, 6 Jan 2008 17:03:59 -0600, "Victor Kryukov" wrote: > I'd say it would be helpful to include an example of correct > create-scanner usage in the create-scanner section. You're right. I'll add that for the next release. Thanks for the note. > Thank you very much for all your libraries! You're welcome... :) > PS. Is your Amazon wish list up-to-date? Er, it is now... :) I think I hadn't looked at it for quite some time. Edi. From terrence.x.brannon at jpmchase.com Thu Jan 10 20:20:40 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Thu, 10 Jan 2008 15:20:40 -0500 Subject: [cl-ppcre-devel] using cl-ppcre functions without package prefixes In-Reply-To: Message-ID: I'm partial to the book "Successful Lisp" but neither book covers ASDF. This tutorial was of great help in the past: http://common-lisp.net/~mmommer/asdf-howto.shtml but it is not quite helping me enough here. In both Case 1 and Case 2 below, my .sbclrc does not change, yet Case 2 works just fine. I would like to be able to do an asdf load on bank-match and have it pull-in cl-ppcre, but as it stands I must manually load it first. (setf asdf:*central-registry* '( ;; *default-pathname-defaults* ;;; #P"C:\\cygwin\\home\\W049945\\prg\\lisp-asdf\\series-2.2.9\\" #P"C:\\cygwin\\home\\W049945\\prg\\lisp-asdf\\cl-ppcre-1.3.2\\" #P"C:\\cygwin\\home\\W049945\\prg\\redick\\lisp\\" #P"C:\\etl\\y.com\\trunk\\zan\\approximate-matching\\src\\lisp\\" )) Case 1: attempt to load cl-ppcre via my defpackage: throw error 'The name "CL-PPCRE" does not designate any package.' relevant source: (defpackage :bank-match (:use :cl :asdf :cl-ppcre) ) (in-package :bank-match) (asdf:defsystem bank-match :description "Approximate bank matching" :author "Terrence M. Brannon" :maintainer "Terrence M. Brannon" :licence "Artistic" :version "1.0" :serial t :components ( (:file "clean") ) ) (progn (declaim (optimize (debug 3) (safety 3))) (asdf:operate 'asdf:load-op 'bank-match)) Case 2: load cl-ppcre manually and then attempt to load my bank-match package using a simple asdf call => works just fine symbols: BANK-MATCH::OPTIMIZE, COMMON-LISP:OPTIMIZE ;;;; (asdf:operate 'asdf:load-op 'cl-ppcre) ... ; loading system definition from ; C:\cygwin\home\W049945\prg\lisp-asdf\cl-ppcre-1.3.2\cl-ppcre.asd into ; # ; registering # as CL-PPCRE ;;;; (asdf:operate 'asdf:load-op 'bank-match) ... ; loading system definition from ; c:\etl\aml-ntdb-uat-02.ny.jpmorgan.com\trunk\zan\approximate-matching\src\lisp\bank-match.asd ; into # ; registering # as BANK-MATCH ;;;; (asdf:operate 'asdf:load-op 'cl-ppcre) ... ;;;; (asdf:operate 'asdf:load-op 'bank-match) ... -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) Edi Weitz Sent by: cl-ppcre-devel-bounces at common-lisp.net 01/04/2008 05:43 PM Please respond to General interest list about cl-ppcre To General interest list about cl-ppcre cc Subject Re: [cl-ppcre-devel] using cl-ppcre functions without package prefixes On Fri, 4 Jan 2008 17:20:41 -0500, terrence.x.brannon at jpmchase.com wrote: > Hello, I know this is more of just a pure Lisp question, but i > cannot figure out how to get my Lisp program to use cl-ppcre without > having to prefix the function calls with 'cl-ppcre' Your technical question was answered already, but I suspect (I may be wrong, of course) that you make the same mistake many Lisp newbies make - you're confusing packages and systems. A "package" is a first-class Lisp object defined in the ANSI standard. You can read about it here for example: http://gigamonkeys.com/book/programming-in-the-large-packages-and-symbols.html (Read the whole book if you haven't done so already.) A "system" (that's a common usage of the name although there's no fixed definition for it) is something that's defined by a defsystem facility like ASDF - it's more or less a collection of source files plus instructions on how they are to be compiled. Very often there's a system and a package of the same name, like it's the case for CL-PPCRE. That doesn't have to be the case, though. The names could be different, one system could define more than one package or no package at all, you can define a package without defining a system, etc. HTH, Edi. _______________________________________________ cl-ppcre-devel site list cl-ppcre-devel at common-lisp.net http://common-lisp.net/mailman/listinfo/cl-ppcre-devel ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From terrence.x.brannon at jpmchase.com Thu Jan 10 21:54:03 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Thu, 10 Jan 2008 16:54:03 -0500 Subject: [cl-ppcre-devel] shortcut functions In-Reply-To: Message-ID: I'm sure I'm not the first to build a shortcut to make calls to cl-ppcre a bit clearer. I wrote the function re-place() ... note how much clearer crude-hacks2 is compared to crude-hacks (defun crude-hacks (s) "crude hacks :)" (cl-ppcre:regex-replace "head\\s*office" (cl-ppcre:regex-replace "due\\s*from" (cl-ppcre:regex-replace "hapoalim\\s*branch" s "hapoalim bank") " ") " ") ) (defun re-replace (s replace-list) "input-string replace-list => output-string" (if (null replace-list) s (let* ((replace-expr (car replace-list)) (match (car replace-expr)) (replace (cadr replace-expr)) ) (cl-ppcre:regex-replace match (re-replace s (cdr replace-list)) replace)))) (defun crude-hacks2 (s) (re-replace s '( ("head\\s*office" " ") ("due\\s*from" " ") ("hapoalim\\s*branch" "hapoalim bank") ))) -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Thu Jan 10 23:01:40 2008 From: edi at agharta.de (Edi Weitz) Date: Fri, 11 Jan 2008 00:01:40 +0100 Subject: [cl-ppcre-devel] using cl-ppcre functions without package prefixes In-Reply-To: (terrence x. brannon's message of "Thu, 10 Jan 2008 15:20:40 -0500") References: Message-ID: On Thu, 10 Jan 2008 15:20:40 -0500, terrence.x.brannon at jpmchase.com wrote: > I would like to be able to do an asdf load on bank-match and have it > pull-in cl-ppcre Your system definition for BANK-MATCH must /depend/ on CL-PPCRE: (asdf:defsystem :bank-match ... :depends-on (:cl-ppcre)) > attempt to load cl-ppcre via my defpackage One day I will write a website about this... Systems (that's what third-party libraries like ASDF are about) and packages (first-class objects defined by the ANSI standard) are not the same thing, in fact they are orthogonal concepts. You cannot load anything with a DEFPACKAGE form. http://gigamonkeys.com/book/ Edi. PS: Why was your email sent to cl-ppcre-devel-bounces at common-lisp.net? From terrence.x.brannon at jpmchase.com Tue Jan 15 18:03:12 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Tue, 15 Jan 2008 13:03:12 -0500 Subject: [cl-ppcre-devel] more readable archive of this list? Message-ID: Hi, Could we create a google group archive of this list? The current archive - http://common-lisp.net/mailman/listinfo/cl-ppcre-devel - is not very browseable or searchable. -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Tue Jan 15 20:04:29 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 15 Jan 2008 21:04:29 +0100 Subject: [cl-ppcre-devel] more readable archive of this list? In-Reply-To: (terrence x. brannon's message of "Tue, 15 Jan 2008 13:03:12 -0500") References: Message-ID: On Tue, 15 Jan 2008 13:03:12 -0500, terrence.x.brannon at jpmchase.com wrote: > Could we create a google group archive of this list? The current > archive - http://common-lisp.net/mailman/listinfo/cl-ppcre-devel - > is not very browseable or searchable. I'm fine with everything that I don't have to do myself... :) Two options I could think of: 1. Create a custom Google search engine. Check the "Regex Coach" website for an example. Someone did it there. 2. Subscribe the mailing list to Gmane. I don't know if they have facilities to add the existing archives, but at least you'll have an interface for new mails. HTH, Edi. From terrence.x.brannon at jpmchase.com Tue Jan 15 20:12:31 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Tue, 15 Jan 2008 15:12:31 -0500 Subject: [cl-ppcre-devel] "(?x)rewith#" differs from "rewith#" :extended-mode t Message-ID: In Perl, the same results are returned for both means of extended mode processing: $a = 'aba#'; $b = $a; $a =~ s!aba#!!x; $b =~ s!(?x)aba#!!; warn $a; warn $b; In cl-ppcre, the results differ: (setf a "aba#") (setf b "aba#") (regex-replace "aba#" a "" :extended-mode t) (regex-replace "(?x)aba#" b "") -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From terrence.x.brannon at jpmchase.com Tue Jan 15 20:18:43 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Tue, 15 Jan 2008 15:18:43 -0500 Subject: [cl-ppcre-devel] cl-ppcre::parse-string - does anyone else want it to take the mode flags? Message-ID: I ran across that misfeature with "#" because I could not pass :extended mode t to the parse-string function, which I use for debugging my regexps. So, I was forced to prepend "(?x)" to my regexps. I wonder if anyone else had a need for passing flags to parse-string: (defun myre (inre &key (dbg nil)) (let ((re (concatenate 'string "(?ix)" inre))) (if dbg (cl-ppcre::parse-string re) (create-scanner re)))) -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Tue Jan 15 20:21:24 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 15 Jan 2008 21:21:24 +0100 Subject: [cl-ppcre-devel] cl-ppcre::parse-string - does anyone else want it to take the mode flags? In-Reply-To: (terrence x. brannon's message of "Tue, 15 Jan 2008 15:18:43 -0500") References: Message-ID: On Tue, 15 Jan 2008 15:18:43 -0500, terrence.x.brannon at jpmchase.com wrote: > I ran across that misfeature with "#" because I could not pass > :extended mode t to the parse-string function, which I use for > debugging my regexps. PARSE-STRING is not exported. It's not part of the supported API of CL-PPCRE. From terrence.x.brannon at jpmchase.com Tue Jan 15 20:30:05 2008 From: terrence.x.brannon at jpmchase.com (terrence.x.brannon at jpmchase.com) Date: Tue, 15 Jan 2008 15:30:05 -0500 Subject: [cl-ppcre-devel] more readable archive of this list? In-Reply-To: Message-ID: Ok, the group is created - http://groups.google.com/group/cl-ppcre Just add this address to the subscriber list for the group: cl-ppcre-garchive-28591 at googlegroups.com -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) Edi Weitz Sent by: cl-ppcre-devel-bounces at common-lisp.net 01/15/2008 03:04 PM Please respond to General interest list about cl-ppcre To General interest list about cl-ppcre cc Subject Re: [cl-ppcre-devel] more readable archive of this list? On Tue, 15 Jan 2008 13:03:12 -0500, terrence.x.brannon at jpmchase.com wrote: > Could we create a google group archive of this list? The current > archive - http://common-lisp.net/mailman/listinfo/cl-ppcre-devel - > is not very browseable or searchable. I'm fine with everything that I don't have to do myself... :) Two options I could think of: 1. Create a custom Google search engine. Check the "Regex Coach" website for an example. Someone did it there. 2. Subscribe the mailing list to Gmane. I don't know if they have facilities to add the existing archives, but at least you'll have an interface for new mails. HTH, Edi. _______________________________________________ cl-ppcre-devel site list cl-ppcre-devel at common-lisp.net http://common-lisp.net/mailman/listinfo/cl-ppcre-devel ----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Tue Jan 15 20:44:55 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 15 Jan 2008 21:44:55 +0100 Subject: [cl-ppcre-devel] more readable archive of this list? In-Reply-To: (terrence x. brannon's message of "Tue, 15 Jan 2008 15:30:05 -0500") References: Message-ID: On Tue, 15 Jan 2008 15:30:05 -0500, terrence.x.brannon at jpmchase.com wrote: > Ok, the group is created - http://groups.google.com/group/cl-ppcre Thanks, I've added the URL to the CL-PPCRE website. > Just add this address to the subscriber list for the group: > cl-ppcre-garchive-28591 at googlegroups.com Done. From edi at agharta.de Tue Jan 15 20:47:24 2008 From: edi at agharta.de (Edi Weitz) Date: Tue, 15 Jan 2008 21:47:24 +0100 Subject: [cl-ppcre-devel] "(?x)rewith#" differs from "rewith#" :extended-mode t In-Reply-To: (terrence x. brannon's message of "Tue, 15 Jan 2008 15:12:31 -0500") References: Message-ID: On Tue, 15 Jan 2008 15:12:31 -0500, terrence.x.brannon at jpmchase.com wrote: > (regex-replace "aba#" a "" :extended-mode t) There is not :EXTENDED-MODE keyword argument for REGEX-REPLACE. http://weitz.de/cl-ppcre/#regex-replace Edi. From ctdean at sokitomi.com Wed Jan 16 00:23:25 2008 From: ctdean at sokitomi.com (Chris Dean) Date: Tue, 15 Jan 2008 16:23:25 -0800 Subject: [cl-ppcre-devel] "(?x)rewith#" differs from "rewith#" :extended-mode t In-Reply-To: (terrence x. brannon's message of "Tue, 15 Jan 2008 15:12:31 -0500") References: Message-ID: > (regex-replace "aba#" a "" :extended-mode t) I think you ant to use create-scanner here: (regex-replace (create-scanner "aba#" :extended-mode t) "aba#" "") Cheers, Chris Dean