Function: match-string-no-properties
match-string-no-properties is a byte-compiled function defined in
subr.el.gz.
Signature
(match-string-no-properties NUM &optional STRING)
Documentation
Return string of text matched by last search, without text properties.
NUM specifies which parenthesized expression in the last regexp.
Value is nil if NUMth pair didn't match, or there were less than NUM pairs.
Zero means the entire text matched by the whole regexp or whole string.
STRING should be given if the last search was by string-match on STRING.
If STRING is nil, the current buffer should be the same buffer
the search/match was performed in.
Probably introduced at or before Emacs version 20.3.
Aliases
org-match-string-no-properties (obsolete since 9.0)
mh-match-string-no-properties (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun match-string-no-properties (num &optional string)
"Return string of text matched by last search, without text properties.
NUM specifies which parenthesized expression in the last regexp.
Value is nil if NUMth pair didn't match, or there were less than NUM pairs.
Zero means the entire text matched by the whole regexp or whole string.
STRING should be given if the last search was by `string-match' on STRING.
If STRING is nil, the current buffer should be the same buffer
the search/match was performed in."
(declare (side-effect-free t))
(if (match-beginning num)
(if string
(substring-no-properties string (match-beginning num)
(match-end num))
(buffer-substring-no-properties (match-beginning num)
(match-end num)))))