回答編集履歴

2

リベンジ

2017/07/27 04:11

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -13,3 +13,23 @@
13
13
  ref:
14
14
 
15
15
  - [python - Regex to match digits of specific length - Stack Overflow](https://stackoverflow.com/questions/4824942/regex-to-match-digits-of-specific-length)
16
+
17
+
18
+
19
+ 追記
20
+
21
+
22
+
23
+ コメントでダメ出しされたのでリベンジ。
24
+
25
+
26
+
27
+ ```
28
+
29
+ (^(\d{1,2})$|[^\d](\d{1,2}))
30
+
31
+ ```
32
+
33
+
34
+
35
+ これで`$1`/`$3`をみる・・・いやダサいな。

1

ref

2017/07/27 04:11

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -7,3 +7,9 @@
7
7
 
8
8
 
9
9
  でマッチするかと
10
+
11
+
12
+
13
+ ref:
14
+
15
+ - [python - Regex to match digits of specific length - Stack Overflow](https://stackoverflow.com/questions/4824942/regex-to-match-digits-of-specific-length)