Added support for Matches vizualization in replace too,  added suport for replace with substitution patterns

also clear matches array for split
substitution patterns is standard Regex.Replace replacementPattern