lua-users home
lua-l archive

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


>   Local Socket:   2001:db8:4545:2:0:9ff:ac11:4519..750
> 
> I want discard the label and extract the ipaddr and port.

p = "Local Socket:   2001:db8:4545:2:0:9ff:ac11:4519..750"
print(p:match("(.-):%s+(.-)%.%.(.-)$"))