回答編集履歴
1
コピペミスの修正
answer
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
別解としては、
|
7
7
|
```PHP
|
8
|
-
preg_match("/(^|\D)\d{3}(\D|$)/",
|
8
|
+
preg_match("/(^|\D)\d{3}(\D|$)/",$str)
|
9
9
|
```
|
10
10
|
|
11
11
|
|