lua-users home
lua-l archive

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


On Wed, Sep 25, 2013 at 4:21 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> p = "Local Socket:   2001:db8:4545:2:0:9ff:ac11:4519..750"

Or using SIP:

> res = {}
> = sip.match('Local Socket: $S{addr}..$i{port}',p,res)
true
> = res.port
750
> = res.addr
2001:db8:4545:2:0:9ff:ac11:4519