I have a rest URL as a string --> rest/dashboard/person/hari/categrory/savingaccount/type/withdraw
In this I have to get the value between person and category && value between categrory and type. Because those value will dynamically change
rest/dashboard/person/{{}}/categrory/{{}}/type/withdraw
I tried with string.gsub(mystring, "([%w]+%/)([%w%d]+)"). But it seems it is not the correct wast to do it
Please help
/(%w+)/category/(%w+)/, and usematchinstead ofgsubcategory