RegEx/ANSI/Color.regex.source.ps1
$myName = ($MyInvocation.MyCommand.ScriptBlock.File | Split-Path -Leaf) -replace '\.source', '' -replace '\.ps1', '.txt' $myRoot = $MyInvocation.MyCommand.ScriptBlock.File | Split-Path New-RegEx -Description "Matches an ANSI color" | New-RegEx -Atomic -Or @( New-RegEx -Pattern '?<ANSI_24BitColor>' New-RegEx -Pattern '?<ANSI_8BitColor>' New-RegEx -Pattern '?<ANSI_4BitColor>' New-RegEx -Pattern '?<ANSI_DefaultColor>' ) | Set-Content -Path (Join-Path $myRoot $myName) -PassThru |