[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: operator overloading for string matching
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 17 Aug 2015 16:09:02 -0300
> str1 / str2 -- equivalent to str1:match(str2)
Try
getmetatable("").__div= string.match