string Test = @"[Name]Hello"; Regex Finder = new Regex(@"^[\S]"); var Matches = Finder.Matches(Test); string From = Matches[0].ToString();
Matches[0].value
^[.*]
[Name Surname]Hello.
\[[^\]]*]
[author][date]Comment
[author]
[date]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)