#| -*-Scheme-*-
-$Id: edwin.pkg,v 1.266 2001/02/05 17:45:42 cph Exp $
+$Id: edwin.pkg,v 1.267 2001/02/05 18:14:54 cph Exp $
Copyright (c) 1989-2000 Massachusetts Institute of Technology
re-match-buffer-forward
re-match-data
re-match-end
+ re-match-extract-string
re-match-forward
re-match-start
re-search-backward
;;; -*-Scheme-*-
;;;
-;;; $Id: regexp.scm,v 1.73 1999/06/26 02:02:50 cph Exp $
+;;; $Id: regexp.scm,v 1.74 2001/02/05 18:14:48 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology
;;;
(and index
(make-mark (re-match-group) index))))
+(define (re-match-extract-string i)
+ (group-extract-string (re-match-group)
+ (or (re-match-start-index i)
+ (error "No such register:" i))
+ (re-match-end-index i)))
+
(define (re-match-group)
(let ((group (object-unhash match-group)))
(if (not group)