Im trying to crape html and grab items between <tr> tags. Some of the tags are coming through as uppercase for some reason ( <TR> ) and are being ignored by my pattern. How can i tell my pattern to ignore case.
My current pattern is:
preg_match_all("|<tr(.*)</tr>|U",$table,$rows);
You'll need to use the i modifierDOCS:
preg_match("|<tr(.*></tr>|Ui", ...);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With