Next: set-match-data, Previous: match-end, Up: Accessing Matched Text Using Match Data [Index]
This function returns a list of positions (markers or integers) that record all the information on the text that the last search matched.
element number 2N + 1 corresponds to ‘(match-end N)’.
Applies only to buffer searches; normally all the elements are markers or ‘nil’, but if INTEGERS is non-‘nil’, that means to use integers instead of markers. (In that case, the buffer itself is appended as an additional element at the end of the list, to facilitate complete restoration of the match data.)
If REUSE is non-‘nil’, it should be a list. In that case, ‘match-data’ stores the match data in REUSE. REUSE is destructively modified. The purpose of this feature is to reduce the need for garbage collection.
If RESEAT is non-‘nil’, all markers on the REUSE list are reseated to point to nowhere.