Novacode.Paragraph.FindAllByPattern C# (CSharp) Method

FindAllByPattern() public method

Find all unique instances of the given Regex Pattern
public FindAllByPattern ( string str, RegexOptions options ) : List
str string
options RegexOptions
return List
        public List<string> FindAllByPattern(string str, RegexOptions options)
        {
            MatchCollection mc = Regex.Matches(this.Text, str, options);

            var query =
            (
                from m in mc.Cast<Match>()
                select m.Value
            ).ToList();

            return query;
        }