回答編集履歴
2
test
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
$string = "::First Name::Seiki----::Last Name::Tarou----::Age::19";
|
4
4
|
|
5
|
-
preg_match_all("/(?<=^::|----::).+?(?=::)/
|
5
|
+
preg_match_all("/(?<=^::|----::).+?(?=::)/",$string,$match);
|
6
6
|
|
7
7
|
print_r($match[0]);
|
8
8
|
|
1
chousei
test
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
preg_match_all("/(?<=^::|----::).+?(?=::)/s",$string,$match);
|
6
6
|
|
7
|
-
print_r($match);
|
7
|
+
print_r($match[0]);
|
8
8
|
|
9
9
|
```
|