回答編集履歴
1
コメントを受けてのコード修正
test
CHANGED
@@ -2,18 +2,20 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
置き換えもとのURLの最後はすべて'/'で終わっているものとして。
|
5
6
|
|
7
|
+
(必要であれば以下の処理の前に行末に'/'を付ける処理を入れてください。)
|
6
8
|
|
7
9
|
```
|
8
10
|
|
9
11
|
'エラー処理は省いてます
|
10
12
|
|
11
|
-
replaceall "com
|
13
|
+
replaceall "com(.*)/$" , "com\1/abc" , regular, nocasesense, nohilight;
|
12
14
|
|
13
|
-
replaceall "net
|
15
|
+
replaceall "net(.*)/$" , "net\1/def" , regular, nocasesense, nohilight;
|
14
16
|
|
15
|
-
replaceall "jp
|
17
|
+
replaceall "jp(.*)/$" , "jp\1/ghi" , regular, nocasesense, nohilight;
|
18
|
+
|
19
|
+
```
|
16
20
|
|
17
21
|
|
18
|
-
|
19
|
-
```
|