lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2015-08-17 20:57 GMT+02:00 Mason Bogue <scythe+lua@ortsz.com>:
> The proposal is this:
>
> str1 / str2 -- equivalent to str1:match(str2)

As Liuz has pointed out, this is trivial with current Lua.
But it won't work as expected when str1 and str2 both
are convertible to numbers.

> "abc"/"c"
c
> "234"/"4"
58.5