Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2026, 06:14 PM   #1
revjoe
Member
revjoe began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Device: none
RegEx Validation for Custom field

Is it possible to perform regex validation on a custom field when entries are added?

I have a custom field that stores comma separated values that represent BISAC codes. I would like to run a regex against them to ensure that they match the convention of three alpha characters followed by 6 digits.

I have the regex, but is there a way to apply this to values in a custom field?

I looked at the search_template fields, but it feels like validation and search function should be different.

Failing this, I can implement it as a search or a plugin if I need to.

Thanks

Joe
revjoe is offline   Reply With Quote
Old 05-21-2026, 09:52 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,291
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, you would need to use a plugin to validate values post entering them.
kovidgoyal is offline   Reply With Quote
Old 05-22-2026, 10:53 AM   #3
revjoe
Member
revjoe began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Device: none
ok.. Thanks for the input.

I will dig into that a bit.

Thanks again.
revjoe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identifier field - Bulk update (Regex or other) gurcha Library Management 5 02-03-2025 10:25 PM
custom field based on multiple value field for export nindotza Calibre 0 01-02-2021 08:37 AM
Using regex for substring of comments field rcross Library Management 2 03-15-2015 03:21 PM
Add Book Regex to Custom field adept22 Library Management 3 10-07-2014 07:33 PM
Regex Help - Add Book - Insert Filename into Custom Field nynaevelan Library Management 3 10-12-2011 01:14 PM


All times are GMT -4. The time now is 08:12 AM.


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