回答編集履歴
3
修正
test
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
```C#
|
4
4
|
|
5
|
-
var str = "あいうえお
|
5
|
+
var str = "あいうえお\n\n\n\nかきくけこ";
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
while(str.Contains("
|
9
|
+
while(str.Contains("\n\n"))
|
10
10
|
|
11
|
-
str = str.Replace("
|
11
|
+
str = str.Replace("\n\n", "\n");
|
12
12
|
|
13
13
|
```
|
2
誤字修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
while(str.Cntains("¥n¥n"))
|
9
|
+
while(str.Contains("¥n¥n"))
|
10
10
|
|
11
11
|
str = str.Replace("¥n¥n", "¥n");
|
12
12
|
|
1
途中送信してしまったので修正
test
CHANGED
@@ -1 +1,13 @@
|
|
1
|
+
やるだけなら愚直にループさせるとかでいいと思いますよ。
|
2
|
+
|
1
|
-
|
3
|
+
```C#
|
4
|
+
|
5
|
+
var str = "あいうえお¥n¥n¥n¥nかきくけこ";
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
while(str.Cntains("¥n¥n"))
|
10
|
+
|
11
|
+
str = str.Replace("¥n¥n", "¥n");
|
12
|
+
|
13
|
+
```
|