Usage # page2 & quot; class & quot; downpdf & quot; style & quot; cursor: hand; & quot; & gt; 1 topic content and applicability & lt; div & gt; & lt; divid & q: A regular expression
1. subject content and applicability
2 Principle
3 reagents
4. instruments and equipment
5 Sampling and sample storage
How can I intercept the result of ../2003Z/hb/z063.pdf?
------ Solution --------------------
PHP code
$ Str = <
1. subject content and applicability
2 Principle
3 reagents
4. instruments and equipment
5 Sampling and sample storage
STR; preg_match ('/
------ Solution --------------------
Preg_match ('/title = "([^ # \"] +) #/S', $ s, $ m );
Prinit_r ($ m [1]);
------ Solution --------------------
/------ Solution --------------------
/------ Solution --------------------
$ Contents = $ match [1];
Foreach ($ contents as & $ v) $ v = 'http: // localhost/'. $ v;
$ Contents = implode ('#', $ contents );
Echo $ contents;