View Single Post
Old 08-14-2022, 09:57 PM   #7419
astarinlife
Member
astarinlife doesn't litterastarinlife doesn't litter
 
astarinlife's Avatar
 
Posts: 12
Karma: 132
Join Date: Aug 2011
Device: Kindle Voyage, Kindle Paperwhite
Quote:
Originally Posted by JimmXinu View Post
Code:
sort_ships:true

add_to_replace_metadata:
# Split leading 'past' to own (temp) entry, 00 to put at
# front(sort_ships:true assumed)
 ships_CHARS=>^[pP]ast (.*)=>00past\,\1
## strip each ships char down to first part only
 ships_CHARS=>^([^ ]+).*$=>\1
## Change 00past/ back to "Past "
 ships=>^00past\s*(/|&)\s*=>Past\s
Is it possible to use this but with exceptions? For example:
Code:
replace_metadata:
 ships=>James "Rhodey" Rhodes=>Rhodey
 ships=>Mary Jane Watson=>MJ
or is this a pick one way to do things situation?
astarinlife is offline   Reply With Quote