2

Evening all,

I'm looking at passing text from a monitoring system as a variable and then using the regex/LUA to look for duplicate usernames

Example line of text is:

Unathorised Change Profile Entries: (Audit trail entry) USERNAME - USERNAME

Any advice would be greatly appreciated.

greenage
  • 399
  • 3
  • 13

1 Answers1

0

Big thank you for the help above.

Here's my final working code:

a = alarm.get ()

str = a

if (string.match(a.message, "(%a+) %- %1$")) then print("Matching!")

else print("No match") end

greenage
  • 399
  • 3
  • 13