Created
August 13, 2012 00:08
-
-
Save tomsseisums/3335609 to your computer and use it in GitHub Desktop.
HTML breaks, new line, carriage return regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// matches <br>, <br/>, <br />, \n, \r | |
$pattern = '/(<br(\/|\s\/)?>|\n|\r)/'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment