Quote:
Originally Posted by Quoth
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.
|
As my day job is Perl programmer, I have to disagree with that statement. But, I can see it.
Quote:
There is a Pearl site that's good for regex help.
|
Someone recently pointed me to
https://regexr.com/. That is Perl and Javascript. It has some of the function that the first I mentioned does, but, I haven't used it much.
Quote:
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.
|
I settled on geany as the closest the Notepad++. Though I use either Eclipse or VSC when working on projects.
Quote:
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 frequently take the regex from our code and use the site above to check it.
Quote:
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.
|
I do all my book editing in the calibre editor. I've probably done as much regex there as anywhere else.