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.escapepattern.md
2021-03-12 22:10:24 +01:00

455 B

Escapes the string for use in Lua patterns. Escapes the following characters ( ) . % + - * ? [ ] ^ $ with %.

escaped = string.escapepattern("s")

Parameters

s is the string to escape.

Return Value

Returns the input string escaped for use in Lua patterns.

Examples

local match = filename:match(string.escapepattern("boost_filesystem-vc140.1.61.0.0"))

Availability

Premake 5.0 or later.