回答編集履歴
1
追記
test
CHANGED
@@ -5,3 +5,13 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
[サブパターン](http://jp2.php.net/manual/ja/regexp.reference.subpatterns.php)の使用が簡単だと思います。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
**追記**
|
12
|
+
|
13
|
+
正規表現はツールを使用すると多少わかりやすくなりますよ。
|
14
|
+
|
15
|
+
[regexper - ((-?\d*)) ](https://regexper.com/#%5C%28%28-%3F%5Cd*%29%5C%29)
|
16
|
+
|
17
|
+
[regex101.com](https://regex101.com/)
|