lua中if then多条件判断怎么转化成正则表达式

假设if id ==1 or id == 8 or id== 15 or id== 20 or id== 26 then
类似这样的多条件判断语句,怎么转换成正则表达式匹配,或者说可以怎么优化?

提供一种优化方式:
local map = {
[1] = true,
[8] = true,
[15] = true,
[20] = true,
[26] = true,
}

if map[id] then

end

一个空间及时间的权衡取舍

id=15
s='1-8-15-20-26'
if s:find(id) then
print('yes')
else
print('no')
end