diff --git a/Pwsh/Regex/Match-Captures-Groups-Collections.ps1 b/Pwsh/Regex/Match-Captures-Groups-Collections.ps1 index eb2dff8..be5f2f7 100644 --- a/Pwsh/Regex/Match-Captures-Groups-Collections.ps1 +++ b/Pwsh/Regex/Match-Captures-Groups-Collections.ps1 @@ -1,4 +1,5 @@ - +function hr { '-' * 30 -join '' } + $single = [regex]::Matches('a9', '9') $few = [regex]::Matches('sda324r32 d23 ew', '(?.+)') @@ -7,7 +8,7 @@ $few.Groups | Ft $single[0].Groups | Ft ; hr ; $single[0].Captures.groups | Ft - hr -fg magenta + hr $few[0].Groups | Ft ; hr ; $few[0].Captures.groups | Ft