stag: match pattern paths using regular expressions