View Single Post
Old 09-09-2013, 07:17 PM   #30
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: 28,759
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
Diap, many thanks. This small sentence triggered something that helped me with the right ideas to reprogram parts of my add-in. It remembered me about the whole flamewar with regards to using RegEx on (x)HTML/XML instead of a parser.
In short, I am reprogramming a major part to make the convert to HTML process faster and more accurate.
Sir, big thanks.
It's been a long time since I inspired anybody to do anything.

To be honest, I don't have the slightest problem using regex inside another scripting (or full-blown programming) language where some logic can be applied to correctly handle the opening and closing of tags (including any potential nesting issues) it's too handy NOT to make use of. And for the quick stuff that I do within Sigil, Regex is my bestest buddy. But there are times when I ask too much of him: unforeseen scenarios with nested spans and divs are usually involved when that happens.

Last edited by DiapDealer; 09-09-2013 at 07:19 PM.
DiapDealer is offline   Reply With Quote