I am new to the Lua library, I have one use case which I have to remove on a specific parameter and its value: for example:
String 1 : ?xyz=true&toekn=4234dadsasda
String 2 : ?toekn=4234dadsasda&test=pass
Need output like this after removing token and its value
String 1 : ?xyz=true
String 2 : ?test=pass
I have tried the below Lua gsub function but no luck:
string.gsub(args, "token=.*", " ")
any help apricated, thanks