nginx能否正则匹配多个目录访问?

nginx_web_root: /opt有多个web站点,例如34454、563234、23445、688656...这种数字的目录,location如何写正则匹配
访问需求http://192.168.1.233/34454会自动找到34454目录下的index.html
这么写不能访问
location ~ ^/(\d+){
root /opt;
index index.html;
}

从入门到精通-Nginx