PowerArgs.Cli.RegexHighlighter.RegexHighlighter C# (CSharp) Method

RegexHighlighter() public method

Creates the highlighter
public RegexHighlighter ( string pattern, ConsoleColor fg = null, ConsoleColor bg = null ) : System
pattern string The regular expression pattern
fg ConsoleColor The foreground color of this highlighter. If null, the console default is used.
bg ConsoleColor The background color of this highlighter. If null, the console default is used.
return System
        public RegexHighlighter(string pattern, ConsoleColor? fg = null, ConsoleColor? bg = null)
            : base(fg,bg)
        {
            this.regex = new Regex(pattern);
        }