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

  • GWTLecturer

    GWTLecturer

    18 EKİM 2012
  • TheSalband Rai

    TheSalband R

    11 NİSAN 2011
  • wwjoshdo

    wwjoshdo

    25 Mayıs 2009