05-23-2017, 10:58 PM | #1 |
Fanatic
Posts: 519
Karma: 32158
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. |
05-23-2017, 11:18 PM | #2 |
creator of calibre
Posts: 44,312
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
from calibre.ebooks.oeb.base import uuid_id
random_id = uuid_id() |
Advert | |
|
05-23-2017, 11:47 PM | #3 |
Fanatic
Posts: 519
Karma: 32158
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 05:15 PM |
RegEx Function: Title Case | phossler | Editor | 29 | 07-04-2020 10:52 AM |
RegEx-Function and hyphenation problem | scratch | Editor | 4 | 01-28-2017 12:44 PM |
Regex Function about «» and “” | senhal | Editor | 8 | 04-06-2016 02:12 AM |
A regex function to number a mathematical ebook | dmonasse | Editor | 3 | 12-23-2014 02:54 AM |