Refine #1283 to allow extraction of multiple subpatterns in regex validator, closes #1335 and closes #1283