@ 2014-06-09T19:45:16Z <?php
$html = <<<EOT
<p><b>There are currently five entries in the London Borough of Barking & Dagenham (LBBD):</b></p>
<p>My string 1<br>
My another string<br>
And this is also my string<br></p>
<p><i>Some text over here</i></p>
EOT;
preg_match_all("/(<p>)?(.+))<br>/", $html, $matches);
print_r($matches);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.7 Warning: preg_match_all(): Compilation failed: unmatched closing parenthesis at offset 10 in /in/EL6S8 on line 11
Output for 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.7 - 5.6.21 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 Warning: preg_match_all(): Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11
Output for 4.3.11 , 4.4.0 - 4.4.1 , 4.4.3 - 4.4.9 , 5.0.0 - 5.0.5 , 5.1.0 - 5.1.1 , 5.1.3 - 5.1.6 Warning: preg_match_all(): Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11
Array
(
)
Output for 4.4.2 , 5.1.2 Warning: preg_match_all(): Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 12
Array
(
)
Output for 4.3.0 - 4.3.10 Warning: Compilation failed: unmatched parentheses at offset 10 in /in/EL6S8 on line 11
Array
(
)
preferences:dark mode live preview
220.19 ms | 401 KiB | 329 Q