Recimo "kdfk++bvbv+**lklv--owbv" vraća 7
Neznam napraviti izraz, dobro bi mi došao kod ali i objašnjenje
Code:
Regex plusMinus = new Regex ( @"?????" );
MatchCollection matchSet;
if ( text == null )
{
Label1.Text = "0";
}
else
{
matchSet = plusMinus.Matches ( text );
Label1.Text = matchSet.Count.ToString ();
}
Regex plusMinus = new Regex ( @"?????" );
MatchCollection matchSet;
if ( text == null )
{
Label1.Text = "0";
}
else
{
matchSet = plusMinus.Matches ( text );
Label1.Text = matchSet.Count.ToString ();
}