Thread: Regex examples
View Single Post
Old 06-26-2012, 10:32 AM   #98
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by roger64 View Post
Do you think it is possible to join your two commands with a kind of AND/OR link so that it would destroy the tags two by two or be happy with one?
I certainly wouldn't know of any way to easily combine them. It really boils down to the lazyiness/greediness aspects of the various regex repetition-control characters. I can't imagine it would take that many clicks of the "replace all" button to rid the "body-text" paragraphs of <br /> tags, but then again... I'm not looking at the afflicted code either.
DiapDealer is offline   Reply With Quote