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 />). Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
.josh Posted July 11, 2009 Share Posted July 11, 2009 ~((?:<br\s?/>\s*){3,})~is Quote Link to comment Share on other sites More sharing options...
haku Posted July 11, 2009 Author Share Posted July 11, 2009 Thanks mate - that worked perfectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.