Skip to main content

find_last_not_of

Method of string.

Overloads

NameDescription
find_last_not_of(const string f, integer pos) -> integerFinds the last occurrence of any character not in the specified substring starting from the given position.
find_last_not_of(string list) -> ObjectFinds the last character not contained in a character list.

find_last_not_of(const string f, integer pos) -> integer

Finds the last occurrence of any character not in the specified substring starting from the given position.

Parameters

  • f: The substring containing characters to exclude.
  • pos: The position to start the search from.

find_last_not_of(string list) -> Object

Finds the last character not contained in a character list.

Parameters

  • list: The characters to exclude.

Returns

The match position, or the underlying not-found value.

Example

"abab".find_last_not_of("ac")
//-> 3