package ecaml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=87e76473915e12d718096100a5c4d15d98aba6f99ecbf21814b7389e8c28bb25
doc/ecaml/Ecaml/Regexp/Last_match/index.html
Module Regexp.Last_match
Source
Supplying ~update_last_match:true
to a searching function causes Emacs to keep track of the "last match", i.e. the start and end positions of the segments of text found during the search. One can access parts of the last match via the Last_match
functions. subexp
is one based. (Info-goto-node "(elisp)Match Data")
(describe-function 'match-data)
(Info-goto-node "(elisp)Entire Match Data")
(describe-function 'set-match-data)
(Info-goto-node "(elisp)Entire Match Data")
(describe-function 'save-match-data)
(Info-goto-node "(elisp)Saving Match Data")
text_exn
returns the text of the last match, or the subexp
'th parenthesized subexpression. (describe-function 'match-string)
(Info-goto-node "(elisp)Simple Match Data")
start_exn
returns the index of the start of the last match, or the subexp
'th parenthesized subexpression. (describe-function 'match-beginning)
(Info-goto-node "(elisp)Simple Match Data")
end_exn
returns the index after the end of the last match, or the subexp
'th parenthesized subexpression. (describe-function 'match-end)
(Info-goto-node "(elisp)Simple Match Data")
(describe-function 'replace-match)