Find word in a string using a regex pattern lua
snippet in lua

Find word in a string using a regex pattern lua

user6922

s="rest/dashboard/person/hari/category/savingaccount/type/withdraw" 
print(s:match("/person/(.-)/category/(.-)/type/"))