forgot a ^ in regex
remove final comma in array
add named subpattern if `$requirements` is set
change default subpattern to any char except `/`