Function: r2b-set-match

r2b-set-match is a byte-compiled function defined in refbib.el.gz.

Signature

(r2b-set-match VAR N REGEXP STRING)

Documentation

Set VAR to the Nth subpattern in REGEXP matched by STRING, or nil if none.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/refbib.el.gz
(defun r2b-set-match (var n regexp string )
   "Set VAR to the Nth subpattern in REGEXP matched by STRING, or nil if none."
   (set var
      (if (and (stringp string) (string-match regexp string))
	 (substring string (match-beginning n) (match-end n))
	 nil)
      )
   )