SORU
15 EKİM 2008, ÇARŞAMBA


Nasıl C tek bir boşluk ile birden çok boşluk değiştiririm?#?

Nasıl C sadece bir boşluk ile bir dize içinde birden çok boşluk değiştirebilir miyim#?

Örnek:

1 2 3  4    5

olabilir:

1 2 3 4 5

CEVAP
15 EKİM 2008, ÇARŞAMBA


RegexOptions options = RegexOptions.None;
Regex regex = new Regex(@"[ ]{2,}", options);     
tempo = regex.Replace(tempo, @" ");

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • jonathepianist

    jonathepiani

    31 Temmuz 2008
  • POGProductionz

    POGProductio

    27 NİSAN 2012
  • Drakinen

    Drakinen

    1 EYLÜL 2008