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-01-2012, 03:30 PM   #1
Roberta Carrota
Junior Member
Roberta Carrota began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2011
Device: none
Using regular expressions to remove Numbers at beginning of titles

Just imported a number of old files I had numbered sequentially with the numbers at the beginning of the titles. With Calibre those aren't necessary since the "series" field can handle them and they mess up the alphabetical ordering.

Is there a way to remove those using a regular expression? For example there is a series of books such as

01 title of book a
02 Title of book b

and so on. I'd like to get rid of the first 3 characters in each for all of them at once. I could edit them individually, but that takes a lot of time.

Any help would be appreciated.
Roberta Carrota is offline   Reply With Quote
Old 02-01-2012, 03:47 PM   #2
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,582
Karma: 25107878
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
\d+ will match the numbers and I think \s+ the space.

Not at my computer so can't try it.

Helen
speakingtohe is offline   Reply With Quote
Old 02-01-2012, 04:08 PM   #3
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,245
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by speakingtohe View Post
\d+ will match the numbers and I think \s+ the space.

Not at my computer so can't try it.

Helen
Looks good to me
theducks is online now   Reply With Quote
Old 02-01-2012, 04:14 PM   #4
Roberta Carrota
Junior Member
Roberta Carrota began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2011
Device: none
Thanks to both of you. I'll try them out and see what happens.
Roberta Carrota 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
Regular Expressions geormes Calibre 4 08-04-2011 07:09 AM
Regular Expressions littleezza Conversion 1 07-15-2011 11:52 AM
Another help with regular expressions encapuchado Library Management 6 06-21-2011 03:14 PM
Help with regular expressions jevonbrady Library Management 6 06-21-2011 10:16 AM
Help with Regular Expressions ghostyjack Workshop 2 01-08-2010 11:04 AM


All times are GMT -4. The time now is 11:39 AM.


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