ile değiştirilmesi Gsub'u denedim ("[\ r \ n] +", "\ r \ n", textDoc) ancak görünüyor Tek bir dizgeden ziyade, ayrı ayrı ele alınsın mı?R - Regex - Birden fazla r n (CRLF) bir r n
DÜZENLEME -
"This is a line! It ends with a CRLF!\r\n
\r\n
\r\n
There is more stuff down here! I want it directly below the other stuff! Get rid of those two blank lines! Actually, ANYTIME I have blank lines, lets remove them!\r\n"
Bu soruya daha fazla açıklık getirilmesi gerekiyor. –
Örnek dizeye eklendi. – Jibril