preg匹配所有包含的字符和空格

时间:2019-07-05 12:26:34

标签: php regex

我想匹配从/Subtype /Widget行到<<行的所有内容

使用此代码无法匹配

preg_match('#/Subtype /Widget([.\s]*)<<#', $pdf, $matches);

主题

522 0 obj 
<<
/Subtype /Widget
/V (some text)
/T (Kreditor)
/Rect [54.6 359.16 296.4 531.84]
/P 414 0 R
/DA (/Helv 8 Tf 0 g)
/Ff 8392704
/Type /Annot
/F 4
/TU (Kreditor:)
/AP 
<<
/N 534 0 R

0 个答案:

没有答案