|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 573
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Random number in Regex Function?
Dear you guys,
I'm trying to create footnote id using Regex Function and I want random "xxxx" for the id. I can't find that in the Calibre Manual page and examples in this forum. ![]()
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,639
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
from calibre.ebooks.oeb.base import uuid_id
random_id = uuid_id() |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 573
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Great. Thank you, Kovid.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| regex-function convert roman numerals | weberr | Editor | 11 | 09-22-2021 06:15 PM |
| RegEx Function: Title Case | phossler | Editor | 29 | 07-04-2020 11:52 AM |
| RegEx-Function and hyphenation problem | scratch | Editor | 4 | 01-28-2017 01:44 PM |
| Regex Function about «» and “” | senhal | Editor | 8 | 04-06-2016 03:12 AM |
| A regex function to number a mathematical ebook | dmonasse | Editor | 3 | 12-23-2014 03:54 AM |