|
2017-04-21 10:09 GMT+02:00 steve donovan:
> I have a use case where it's important to guarantee that a lua string
> pattern is valid up front.
Is there such a thing as a pattern whose validity depends on what
string it is being applied to? If not, pcall(string.match, pattern, "")
should be adequate to test validity.