Id like to know how you remove a space if it exists on either side of a <br /> tag
$str = 'remov e <br /><br />from<br /><br /> r<br />'
i tryed the following but i cant get it fully working.
preg_replace('/[\s]<br \/>/', '', $str );
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.
Keep in mind that
\smatches any white-space, including tabs and newlines – not just spaceschr(20).