;;; -*-Scheme-*-
;;;
-;;; $Id: regexp.scm,v 1.4 1999/08/20 20:34:12 cph Exp $
+;;; $Id: regexp.scm,v 1.5 1999/12/16 22:06:31 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology
;;;
(if (null? (cdr alternatives))
(list "\\)")
(cons "\\|" (loop (cdr alternatives)))))))))))
+
+(define (re-match-extrace string i regs)
+ (substring string
+ (re-match-start-index i regs)
+ (re-match-end-index i regs)))
\f
(define (make-substring-operation name primitive)
(lambda (regexp string start end #!optional case-fold? syntax-table)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.332 1999/10/23 03:01:46 cph Exp $
+$Id: runtime.pkg,v 14.333 1999/12/16 22:06:35 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
guarantee-re-registers
preserving-re-registers
re-match-end-index
+ re-match-extract
re-match-start-index
re-registers
re-registers?