Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2011, 02:37 PM   #1
Doug-W
Member
Doug-W began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2011
Device: Nook
Edit MultiData Search and Replace to multiple fields

Is it possible to have multiple destination fields in a bulk edit search and replace?

I had some badly formatted files imported where it was added as:

(pub date) Series - Series # - Title - Author

And I wrote a series of search and replaces to deal with it one per output IE:

\((\d+)\)\s+.* in title
\1 in destination field #pubdate

then another one for
.* - (.*) in title
\1 in destination author field
etc...

I'd really just like to have one regex and use either the named regexes or \1 goes to this field, \2 goes to the next field, \3 goes to the 3rd, etc... Is that possible?

Or even for it to realize the named parameters and have:
(?P<series>.*) - (?P<series_index>[0-9ab]*)\s+(?P<title>[^_]) change the series and series_index tag and not just the title tag (Which is what it does now.)

Last edited by Doug-W; 02-22-2011 at 02:43 PM.
Doug-W is offline   Reply With Quote
Old 02-22-2011, 03:17 PM   #2
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
No, you can only have one destination field.
Manichean is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase search and replace? user_none Conversion 24 04-08-2011 03:59 PM
need regex help search and replace schuster Calibre 4 01-10-2011 09:00 AM
Search & Replace Pat Nickholds Sigil 2 10-21-2010 11:18 PM
Search and replace in 0.2.0 paulpeer Sigil 7 03-13-2010 11:59 AM
Why no search and replace? charleski Sigil 10 11-24-2009 04:13 PM


All times are GMT -4. The time now is 02:48 PM.


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