This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/string.findlast.md

20 lines
449 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Finds the last instance of a pattern within a string.
```lua
string.findlast("str", "pattern", plain)
```
### Parameters ###
`str` is the string to be searched. `pattern` is the pattern to search for; it may use Lua's pattern matching syntax. If `plain` is true, no pattern matching will be performed (faster).
### Return Value ###
The matching pattern, if found, or nil if there were no matches.
### Availability ###
Premake 4.0 or later.