Functions | |
---|---|
match-data | |
match-end | &optional (subexp 0) |
match-start | &optional (subexp 0) |
match-string | &optional (subexp 0) |
match-strings | |
string-match | regexp string &key (start 0) end |
Macros | |
---|---|
save-match-data | &body body |
Return start position of first match for REGEXP in STRING, or nil if there is no match. First argument REGEXP is a regular expression. Second argument STRING is the target string. Keyword arguments START and END are bounding indices in STRING. Default values are zero and the length of STRING. See the `cl-ppcre:scan' function, for more details.
Return start index of text matched by last search. Optional argument SUBEXP (a non-negative integer) specifies a parenthesized expression. A value of zero means the entire match. This is the default. Value is nil if there is no match.
Return end index of text matched by last search. Optional argument SUBEXP (a non-negative integer) specifies a parenthesized expression. A value of zero means the entire match. This is the default. Value is nil if there was no match.
Save match data, execute BODY forms, restore match data. Value is the value of the last form in BODY.
Return string of text matched by last search. Optional argument SUBEXP (a non-negative integer) specifies a parenthesized expression. A value of zero means the entire match. This is the default. Value is nil if there is no match.