|
|
#1 |
|
IOC Chief Archivist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite, Lenovo Tab P12 & Tab One, TCL 50XL Nxtpaper 5G
|
Regex help needed to fix titles
I have some series books that have the series info in the title. (Yes, I did this, way back before I started using plugboards, and I'm just now getting around to fixing some of them.) I have a rudimentary knowledge of regex (in fact, I think that's how I got them this way to begin with), but I can't get my head around this one.
Ex: Series Name 4 - Title I need to remove everything before the title. Help? |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,341
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Select books with an Identical problem:The Search field: Title The mode is Regex the pattern: (.+ \d+ - ) Note the spaces surrounding the dash and just before the \d The samples should Exactly agree with what you want. (adjust or remove) undesired changes. pay attention to non-discernible leading spaces. move the cursor. if it stay at the front of the first letter, you still have a spaceApply space\d+space matches the numbers (any quantity together) |
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
IOC Chief Archivist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite, Lenovo Tab P12 & Tab One, TCL 50XL Nxtpaper 5G
|
Works perfectly, and your explanation allowed me to adapt it for a few that were a little different. Yay!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with regex needed. | kamanza | Library Management | 3 | 01-24-2012 08:27 AM |
| RegEx Help needed | ghostyjack | Sigil | 14 | 11-02-2011 11:22 AM |
| Regex - Library Order Fix? | penguinaka | Library Management | 3 | 07-29-2011 04:59 AM |
| regex to fix up hyphenated words please | cybmole | Sigil | 2 | 01-06-2011 05:13 AM |
| Regex help needed | gandor62 | Calibre | 2 | 11-04-2009 11:27 AM |