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,113
Karma: 5186678
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Ubuntu Linux, Cybook Opus, Motorola Xoom with Mantano Premium
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: http://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