Escapes the string for use in Lua patterns. Escapes the following characters ( ) . % + - * ? [ ] ^ $
with %
.
escaped = string.escapepattern("s")
s
is the string to escape.
Returns the input string escaped for use in Lua patterns.
local match = filename:match(string.escapepattern("boost_filesystem-vc140.1.61.0.0"))
Premake 5.0 or later.