Types/Irregular.Match.Extract.type.ps1

Write-TypeView -TypeName Irregular.Match.Extract -HideProperty StartIndex, EndIndex, Match, Input -ScriptProperty @{
    StartIndex = { $this.Match.Index}
    EndIndex = { $this.Match.Index + $this.Match.Length }
    Input = { $this.Match.Result('$_') } 
}