I’ve got some html string and I’d like to use preg_replace to replace everything between
<table border="0" cellpadding="0" cellspacing="0">
…and…
</table>
Any thoughts?
"/<table border=\b[^>]*>(.*?)<\/table>/ims"
does not work for me 🙁
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just a little correction is needed:
Note: I used to put
<and>characters in square brackets, just a habit.