View Single Post
Old 03-06-2011, 12:38 PM   #1
mdibella
Groupie
mdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheesemdibella can extract oil from cheese
 
Posts: 193
Karma: 1107
Join Date: Oct 2007
Device: Infinite Kindles, Occasional Sony's
Please help a poor idiot with 'regular expressions'

Here is my situation: I have a bunch of books whose author name has (as an example)

John Ringo - The Legacy of the Aldenata 5

What I want to do is move the stuff after the dash into the 'series' tag and the 'series index' tag, using 'Editing metadata in bulk' search and replace feature. Unless there's another way to do it, in which case I am *really* an idiot.

This expression: .*? -
returns the part I need to split into two pieces.

This expression: .*? - [^0-9]+
returns the number that goes into the index.


Can some genius please tell me how to construct an expression that will return the part between the dash and the number so I can put that into the series???
mdibella is offline   Reply With Quote