[cl-ppcre-devel] using parse-tree-synonyms to extend character classes...
Gary King
gwking at metabang.com
Wed Jan 25 04:05:53 UTC 2006
Should i expect the following to work?
(define-parse-tree-synonym
hostname-char #.(cl-ppcre::parse-string "[-a-zA-Z0-9_.]"))
(define-parse-tree-synonym
pathname-char (:char-class hostname-char #\: #\@ #\& #\? #\= #\+
#\, #\! #\/ #\~ #\* #\' #\% #\\ #\$))
(define-parse-tree-synonym
pathname (:sequence (:greedy-repetition 0 nil pathname-char)))
(scan-to-strings
'(:sequence pathname) "My page is at http://www.metabang.com/foo/
boo.")
> Error: Unknown symbol HOSTNAME-CHAR in character class
> While executing: PPCRE::CONVERT-CHAR-CLASS-TO-HASH
> Type Command-. to abort.
See the Restarts… menu item for further choices.
1 >
Thanks,
--
Gary Warren King
metabang.com
http://www.metabang.com/
More information about the Cl-ppcre-devel
mailing list