Fixed cap bug in regex