This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Dealing with objects with tag
#5
(19.04.2022, 06:58)admin Wrote: This will add 100 to the last group address part:
Code:
addr = event.dst:gsub('%d+$', function(a)
  return tonumber(a) + 100
end)
log(addr)
Thanks Admin
I think it will be easy for me to get only the last group address part as number, because its not the same pattern.

Also what is function(a)?

BR,
Best Regards,
Reply


Messages In This Thread
Dealing with objects with tag - by khalil - 18.04.2022, 10:51
RE: Dealing with objects with tag - by admin - 19.04.2022, 06:58
RE: Dealing with objects with tag - by khalil - 19.04.2022, 07:58
RE: Dealing with objects with tag - by khalil - 19.04.2022, 08:32
RE: Dealing with objects with tag - by admin - 19.04.2022, 08:02
RE: Dealing with objects with tag - by admin - 19.04.2022, 08:49
RE: Dealing with objects with tag - by khalil - 19.04.2022, 09:11

Forum Jump: