View Single Post
Old 02-21-2011, 05:41 AM   #4
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I see two issues with your regex: First, as itimpi said, the vertical bar has special meaning, you'll need to escape it. Second, the asterisk as quantifier means "zero or more occurences", try using the plus quantifier, which means "one or more occurences". Thus, your regex should be
Code:
\|[0-9]+\|
Also note that the regex engine used in Notepad++ is decidedly unsimilar to the Python one used in Calibre. For example, Notepad++ doesn't support matching regexes across multiple lines. Use the test facilities Calibre provides if you want to construct a regex for Calibre.
Manichean is offline   Reply With Quote