Welcome to the CHICKEN Scheme pasting service

irregex chunking added by megane on Wed Jul 25 12:47:03 2012

(use irregex)

(let* ((chkr (make-irregex-chunker cdr car))
       (m (irregex-search/chunked "(b)" chkr '("foo" "bar"))))
  (print m)
  (print (irregex-match-start-index m 0))
  (print (irregex-match-end-index m 0))
  (print (irregex-match-start-index m 1))
  (print (irregex-match-end-index m 1)))

;; #<regexp-match (1 submatch)>
;; 3
;; 1                            ; <- why is this not 4?
;; 3
;; 1                            ; <- why is this not 4?

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What does `(string? 42)' produce?
Visually impaired? Let me spell it for you (wav file) download WAV