View Single Post
Old 12-28-2012, 03:46 AM   #2
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
Since parentheses has a special meaning in RegExps, you have to escape them using backslashes to match them:

\(.*\)

A full match could be:

(.*) \((.*)\)

\1 = Title
\2 = Publisher

See: https://www.mobileread.com/forums/sho....php?p=2242243

Last edited by Adoby; 12-28-2012 at 03:48 AM.
Adoby is offline   Reply With Quote