Quote:
Originally Posted by Toxaris
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.