[ dontoo @ 26.03.2010. 15:11 ] @
Dali je moguće deklarirati niz MatchCollection-a? Nešto kao:
Code:
        MatchCollection a;
        for (int i = 0; i < allParts.Count(); i++)
        {
            Regex regLet = new Regex("[a-z]");
            MatchCollection matchLetters;
            matchLetters = regLet.Matches(allParts[i]);
            a[i] = matchLetters;
        }

Isko kao niz od nizova ili niz od ArrayList-a.
[ Igor Gajic @ 26.03.2010. 20:57 ] @
Zasto ne koristis:

Code:

List<MatchCollection> matches = new List<MatchCollection>();

        for (int i = 0; i < allParts.Count(); i++)
        {
            Regex regLet = new Regex("[a-z]");
            MatchCollection matchLetters;
            matches.Add(regLet.Matches(allParts[i]));
        }
[ sallle @ 29.03.2010. 09:32 ] @
za taj regex , jednostavnije je da koristis uslove

Char.IsLetter(char) ili char.IsLower() ili

x>='a' && x<='z' (ovo je verovatno problematicno za unicode)
[ dontoo @ 03.04.2010. 10:27 ] @
Nije mi palo na pamet koristiti listu ( nakon što sam postao topic sjetio sam se )