07-06-2016, 09:32 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Apr 2016
Device: none
|
'split' in Tag Mapper using spaces
Hi there,
Does anyone know if it's possible to split tags using spaces? I can create the rule to split 'sad AU' based on the character <space> but when I try to test the rule, I get a valueerror: empty separator so I can't split the tag into 'sad', 'AU'. I tried using '* *', '' '','<space>' but none of these worked. Thanks! |
07-06-2016, 03:41 PM | #2 |
creator of calibre
Posts: 44,012
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Spaces wont work (leading and trailing spaces are ignored). Use a regex rule, something like
replace tag if it matches (\S+)\s+(\S+) with \g<1>,\g<2> |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About Tag Mapper | mariaclaudia | Calibre | 5 | 07-05-2016 09:46 AM |
Tag Mapper 'Contains' Issue | blake98 | Calibre | 7 | 07-04-2016 09:25 PM |
Tag Mapper: Regular Expressions, need help | BookFest | Calibre | 2 | 04-17-2016 09:47 AM |
Help: Tag Mapper and RegExpressions | jecilop | Library Management | 17 | 04-14-2016 10:41 PM |
Bug in Tag Mapper | elricks | Calibre | 1 | 01-09-2016 04:04 AM |