Group mount(?P<mount>rockcut/aws) rockcut/awsthe literal text rockcut/aws (case sensitive) /the literal / (4710 / 578 / 2F16)
Group meta(?P<meta>data)? ?repeats the group contents below at most once:
datathe literal text data (case sensitive) /the literal / (4710 / 578 / 2F16)
Group env(?P<env>(dev|test|stage|prod))? ?repeats the group contents below at most once:
Group 4(dev|test|stage|prod) devthe literal text dev (case sensitive) testthe literal text test (case sensitive) stagethe literal text stage (case sensitive) prodthe literal text prod (case sensitive) /the literal / (4710 / 578 / 2F16)
?repeats the group contents below at most once:
\w+any word character, repeated at least once
/?optionally matches the literal / (4710 / 578 / 2F16)
?repeats the group contents below at most once:
\w+any word character, repeated at least once
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string