Quote:
Originally Posted by ownedbycats
Code:
characters=>\s*(\(Disney\)|\(Elder Scrolls\)|\(Fallout\)|\(How to Train Your Dragon\)|\(Mass Effect\)|\(Redwall\)|\(Skyrim\)|\(Watership Down\))$=>
|
Code:
characters=>\s*\((Disney|Elder Scrolls|Fallout|How to Train Your Dragon|Mass Effect|Redwall|Skyrim|Watership Down)\)$=>
You can simplify a little bit by moving the escaped '\(' and '\)' outside instead of copying them every time. Makes it slightly less brittle, IMO.