mardi 20 mars 2018

How to extract sub strings in lua

i have a string "[testid-1] is locked out / / Subject: / Account Domain: NM /" and I need to extract "testid-1" within the square braces and domain "NM" out of the string using lua script. I am trying to use the below with no luck, i have also tried escaping [.

aname=string.match(a,'[(.*)]')

Aucun commentaire:

Enregistrer un commentaire