回答編集履歴
2
微修正
test
CHANGED
@@ -12,6 +12,6 @@
|
|
12
12
|
|
13
13
|
```JavaScript
|
14
14
|
|
15
|
-
"1234567".match(/\d{2}(?=(?:\d
|
15
|
+
"1234567".match(/\d{2}(?=(?:\d{2})*$)/g)
|
16
16
|
|
17
17
|
```
|
1
追記
test
CHANGED
@@ -3,3 +3,15 @@
|
|
3
3
|
"1234567".match(/(\d{2})/g)
|
4
4
|
|
5
5
|
```
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
#追記
|
10
|
+
|
11
|
+
後ろから2つずつ。
|
12
|
+
|
13
|
+
```JavaScript
|
14
|
+
|
15
|
+
"1234567".match(/\d{2}(?=(?:\d\d)*$)/g)
|
16
|
+
|
17
|
+
```
|