Skip to content

Commit e414860

Browse files
committed
added polyfill for hr
1 parent ac5a9aa commit e414860

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Pwsh/Regex/Match-Captures-Groups-Collections.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
1+
function hr { '-' * 30 -join '' }
2+
23
$single = [regex]::Matches('a9', '9')
34

45
$few = [regex]::Matches('sda324r32 d23 ew', '(?<Token>.+)')
@@ -7,7 +8,7 @@ $few.Groups | Ft
78

89
$single[0].Groups | Ft ; hr ;
910
$single[0].Captures.groups | Ft
10-
hr -fg magenta
11+
hr
1112
$few[0].Groups | Ft ; hr ;
1213
$few[0].Captures.groups | Ft
1314

0 commit comments

Comments
 (0)