|
|
#1 |
|
Member
![]() 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 |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#3 |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2011
Device: none
|
ok.. Thanks for the input.
I will dig into that a bit. Thanks again. |
|
|
|
![]() |
|
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 |