Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2016, 09:32 AM   #1
blake98
Member
blake98 began at the beginning.
 
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!
blake98 is offline   Reply With Quote
Old 07-06-2016, 03:41 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: 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>
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:06 PM.


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