I need to extract the domain ( four.five
) from the URL ( one.two.three.four.five
) in a Lua string variable.
I cannot find a function to do this in Lua.
EDIT:
By the time the URL reaches me, the http
material has already been disabled. So, some examples:
a) safebrowsing.google.com b) i2.cdn.turner.com c) powerdns.13854.n7.nabble.com
so my result should be:
a) google.com b) turner.com c) nabble.com
source share