Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2022, 07:59 PM   #1
rawalker
Old Guy
rawalker began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2022
Device: Kobo Clara HD, Kobo Glo
Help running Calibre regex-function

I have created and named a regex-function as shown in the documentation. How do I run this function?

I see boxes for Function: [function name] and for Mode: [Regex-function] but what is the step that runs the function?

Thanks for any and all help.
rawalker is offline   Reply With Quote
Old 04-11-2022, 09:47 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
First you have to select your regex-function, in the "Function" box, then you have to fill in the "Find" box so the regex-function has something to work on. This is usually a regex based find.

Then it is no different to running a simple search or a regex search. Use the normal Find and replace buttons.

For example...
Find <h2>(.*?)</h2> This will find all h2 headings.

Select the function "Title-case Text"

Select Replace All (or find then replace if you want to do them one at a time) and it will convert all upper case headings to title case.

Last edited by Karellen; 04-11-2022 at 09:52 PM.
Karellen is offline   Reply With Quote
Advert
Old 04-12-2022, 08:49 AM   #3
rawalker
Old Guy
rawalker began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2022
Device: Kobo Clara HD, Kobo Glo
Thank you Karellen.
rawalker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RegEx Function: Title Case phossler Editor 29 07-04-2020 10:52 AM
Help creating possible Regex-Function MerlinMama Editor 14 03-03-2020 05:53 AM
Predefined regex for Regex-function sherman Editor 3 01-19-2020 05:32 AM
regex function replacement The_book Sigil 5 12-09-2019 09:45 AM
Regex Function about «» and “” senhal Editor 8 04-06-2016 02:12 AM


All times are GMT -4. The time now is 10:21 PM.


MobileRead.com is a privately owned, operated and funded community.