Skip to content

Instantly share code, notes, and snippets.

@mikedamage
Created May 30, 2012 18:29
Show Gist options
  • Save mikedamage/2838148 to your computer and use it in GitHub Desktop.
Save mikedamage/2838148 to your computer and use it in GitHub Desktop.
regexp for line break tags
\<br\s*\/?\>
preg_replace("/\<br\s*\/?\>/", " ", $str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment