using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
var text = "まちが";
var textArray = Regex.Matches(text, @"(?s)]*)?>(.*?)")
.Cast()
.Select(x => x.Groups[1].Value);
foreach (var item in textArray)
Console.WriteLine($"'{item}'");
}
}