I'm trying to parse ID from string /path1/path2/something/id/7272/more/path/8282/category/3131 and the problem is that the string could be different all the time but the very part of /id/* is the same all the time. So I'm trying to get it with the following regex but it seems doesn't work.
new RegExp(/^./\//ig/^\d+$/)
After matching the result should be 7272.
ig!=id