Function: posix-search-backward

posix-search-backward is an interactive function defined in search.c.

Signature

(posix-search-backward REGEXP &optional BOUND NOERROR COUNT)

Documentation

Search backward from point for match for REGEXP according to Posix rules.

Find the longest match in accord with Posix regular expression rules. This function is almost identical to posix-search-forward, except that by default it searches backward instead of forward, and the sign of COUNT also indicates exactly the opposite searching direction. See posix-search-forward for details.

Note that searching backwards may give a shorter match than expected, because REGEXP is still matched in the forward direction. See Info anchor (elisp) re-search-backward for details.

View in manual

Probably introduced at or before Emacs version 19.29.

Key Bindings

Source Code

// Defined in /usr/src/emacs/src/search.c
{
  return search_command (regexp, bound, noerror, count, -1, true, true);
}