View Single Post
Old 11-05-2017, 03:50 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,603
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Search: ^(\d+).*
Search Field: title
Replace: SeriesName [\1]
Replace Field: series

The ^ in the search marks the start of the line
The () in the search mark a section of the search that's to be used to replace the \1 in the replace field - in this case, \d+, one or more contiguous digits.
the .* is just to eliminate the rest of the line.

Since we're replacing the complete series field, you need to include the series name in the replace field, so use the actual series name instead of SeriesName.
pdurrant is offline   Reply With Quote