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