View Single Post
Old 01-16-2023, 03:49 PM   #7955
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by JimmXinu View Post
Because the pattern matches - Fandom\(Movies\) but not - Fandom.

If your intention is reduce all variants of Half-Life to just Half-Life, rather than matching each variant, you could do:
Code:
replace_metadata:
 ^.*(Half-Life).*$=>\1

# case insensitive version, match half-life, Half-life, half-lIFE, etc
replace_metadata:
 (?i)^.*(Half-Life).*$=>Half-Life
Hi, is there a guide on regex that you use in FanFiction downloader? I read through the Calibre regex tutorial and I didn't see the use of "\1" so I'm not sure what that does.

Thanks,
Amalthia
Amalthia is offline   Reply With Quote