How can I convert the following Regex statement into C#?
Match match = Regex.Match(line.Trim(), @"/^[A-Za-z-.]+([,;]\s?[A-Za-z-.]+)*$/", RegexOptions.IgnoreCase); if (match.Success) //do something
It basically matches names such as
Jane, Doe; Jack, Doe
/ at the start and the end of the string.
©2020 All rights reserved.