Function: reb-read-regexp
reb-read-regexp is a byte-compiled function defined in
re-builder.el.gz.
Signature
(reb-read-regexp)
Documentation
Read current RE.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/re-builder.el.gz
;; The next functions are the interface between the regexp and
;; its textual representation in the RE Builder buffer.
;; They are the only functions concerned with the actual syntax
;; being used.
(defun reb-read-regexp ()
"Read current RE."
(save-excursion
(cond ((eq reb-re-syntax 'read)
(goto-char (point-min))
(read (current-buffer)))
((eq reb-re-syntax 'string)
(goto-char (point-min))
(re-search-forward "\"")
(let ((beg (point)))
(goto-char (point-max))
(re-search-backward "\"")
(buffer-substring-no-properties beg (point))))
((reb-lisp-syntax-p)
(buffer-string)))))