Test, validate and match regular expressions
Matches structured mount-style paths starting with 'rockcut/aws', using Go named capture groups to extract optional segments: 'meta' (literal 'data'), 'env' (one of dev, test, stage, or prod), 'app', and 'team' (word characters). It is useful for parsing or transforming multi-line path lists, e.g., rockcut/aws/data/dev/myapp/myteam, into named components for routing, rewriting, or environment-based logic. The gm flags enable global matching across each line.