回答編集履歴

1

追記

2015/10/17 19:25

投稿

退会済みユーザー
test CHANGED
@@ -7,3 +7,27 @@
7
7
  preg_match_all($ptn, $html, $src);
8
8
 
9
9
  使われていません。
10
+
11
+
12
+
13
+ ---
14
+
15
+
16
+
17
+ ```php
18
+
19
+ <?php
20
+
21
+ $str = 'xxxxxxxxfile:"http://xxxexample.com/xxx/yyy/zzz.img"';
22
+
23
+ $ptn = "/file:\"(http:[\/\.0-9a-zA-Z\-%&#=\?]+\.img)/";
24
+
25
+ preg_match_all($ptn, $str, $src);
26
+
27
+ var_dump($src[1][0]);
28
+
29
+
30
+
31
+ //参考 http://www.ipentec.com/document/
32
+
33
+ ```