Function: looking-at

looking-at is a function defined in search.c.

Signature

(looking-at REGEXP)

Documentation

Return t if text after point matches regular expression REGEXP.

This function modifies the match data that match-beginning, match-end and match-data access; save and restore the match data if you want to preserve them.

Probably introduced at or before Emacs version 19.29.

Source Code

// Defined in /usr/src/emacs/src/search.c
{
  return looking_at_1 (regexp, 0);
}