Count signs

  • Автор темы Автор темы qlwik
  • Дата начала Дата начала

qlwik

Client
Регистрация
03.04.2013
Сообщения
208
Реакции
5
Баллы
18
Hi,
I need to count dots in sentence,
is there simplier way to do it, then putting dots to list and counting them?
 
Yes I know this method with saving to list and counting it, but it takes about 2, 3 steps to do it,
it is possible to do it with one step? Maybe java or c# code?
 
var text = project.Variables["my var"].Value;
return text.Where(c=>c=='.').Count();
 
  • Спасибо
Реакции: qlwik

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)