haku Posted July 11, 2009 Share Posted July 11, 2009 Can someone give me a hand? I need a regex that will find three or more XHTML break tags (<br />). Link to comment https://forums.phpfreaks.com/topic/165625-solved-three-break-tags/ Share on other sites More sharing options...
haku Posted July 11, 2009 Author Share Posted July 11, 2009 edit: three or more in a row potentially with spaces between them. Link to comment https://forums.phpfreaks.com/topic/165625-solved-three-break-tags/#findComment-873633 Share on other sites More sharing options...
.josh Posted July 11, 2009 Share Posted July 11, 2009 ~((?:<br\s?/>\s*){3,})~is Link to comment https://forums.phpfreaks.com/topic/165625-solved-three-break-tags/#findComment-873648 Share on other sites More sharing options...
haku Posted July 11, 2009 Author Share Posted July 11, 2009 Thanks mate - that worked perfectly. Link to comment https://forums.phpfreaks.com/topic/165625-solved-three-break-tags/#findComment-873661 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.