Searches a string for the last occurrence of a substring. Args: pattern: The string to find. Returns: The index of the first match or -1 if no match.
(self, pattern: _arg_types.String)
| 194 | ) |
| 195 | |
| 196 | def rindex(self, pattern: _arg_types.String) -> ee_number.Number: |
| 197 | """Searches a string for the last occurrence of a substring. |
| 198 | |
| 199 | Args: |
| 200 | pattern: The string to find. |
| 201 | |
| 202 | Returns: |
| 203 | The index of the first match or -1 if no match. |
| 204 | """ |
| 205 | return apifunction.ApiFunction.call_(f'{self.name()}.rindex', self, pattern) |
| 206 | |
| 207 | def slice( |
| 208 | self, start: _arg_types.Integer, end: _arg_types.Integer | None = None |