View Single Post
Old 06-21-2020, 04:16 AM   #5
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by davidfor View Post
I like https://regex101.com/. The explanation of the parsing helps a lot when debugging a complex expression.
That's interesting.
I use KATE to test any regex before destroying something with a Pearl program. A language that seems to exist purely as a wrapper for regex and I find head wrecking to do "ordinary" things I've done in VB6, C, C++, Modula-2, Java etc.

There is a Pearl site that's good for regex help.

When I first moved completely to Linux from Windows I ran Notepad++ in WINE, as it's a good multdocument tabbed editor with regex and syntax highlighting that can be customised. Then I discovered KATE.

Pearl and a regex in general seems close to a "write-only" language. I find it hard to see what a regex might do.

I found that while LO Writer has good regex Search you can't use parameters in the Replace field. Also it has some non-standard search symbols? It does seem to use a python library for it, but I could be wrong. I do use it to find misformed dialogue punctuation, spaces where there should be none and incorrectly terminated paragraphs, though that finds titles, headings and preambles as they don't punctuate like body text. So I've rarely used search & replace in Calibre. If a book from Gutenberg or wherever needs a lot of work I'd export it converted to RTF, edit and save in ODT, and a final extra Save As in DOCX for Calibre to import.

Last edited by Quoth; 06-21-2020 at 04:23 AM.
Quoth is offline   Reply With Quote