Register Guidelines E-Books Today's Posts Search

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,812
Karma: 26912940
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
Advert
Old 02-01-2012, 04:08 PM   #3
theducks
Well trained by Cats
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: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
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 offline   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


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 07:50 PM.


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