![]() |
#1 |
Old Guy
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Old Guy
![]() Posts: 4
Karma: 10
Join Date: Apr 2022
Device: Kobo Clara HD, Kobo Glo
|
Thank you Karellen.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |