質問編集履歴
1
細かいところを自己解決
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,3 +35,35 @@
|
|
35
35
|
}
|
36
36
|
|
37
37
|
```
|
38
|
+
|
39
|
+
### 追記
|
40
|
+
|
41
|
+
replaceAll連続のところですが正規表現をまとめました。
|
42
|
+
|
43
|
+
```Dart
|
44
|
+
|
45
|
+
import 'dart:io';
|
46
|
+
|
47
|
+
void main() async {
|
48
|
+
|
49
|
+
var myDir = new Directory(r"D:\");
|
50
|
+
|
51
|
+
var RE = RegExp(r"^.*\|'$");
|
52
|
+
|
53
|
+
var mylist = [];
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
await for (var value in myDir.list()) {
|
58
|
+
|
59
|
+
mylist.add(value.toString());
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
mylist.forEach((element) => print(element.replaceAll(RE, r"")));
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
```
|