Skip to content

Commit

Permalink
added polyfill for hr
Browse files Browse the repository at this point in the history
  • Loading branch information
ninmonkey committed May 16, 2024
1 parent ac5a9aa commit e414860
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Pwsh/Regex/Match-Captures-Groups-Collections.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

function hr { '-' * 30 -join '' }

$single = [regex]::Matches('a9', '9')

$few = [regex]::Matches('sda324r32 d23 ew', '(?<Token>.+)')
Expand All @@ -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

Expand Down

0 comments on commit e414860

Please sign in to comment.