View Single Post
Old 01-18-2014, 10:41 AM   #1
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Ungreedy matching in S&R

Is the (?U) PCRE modifier supposed to work in a search string in the editor ?

I keep getting an "unknown extension" error :

Code:
calibre, version 1.20.0
ERROR: Unhandled exception: <b>error</b>:unknown extension at position 2

calibre 1.20  isfrozen: True is64bit: False
Windows-XP-5.1.2600-SP3 Windows ('32bit', 'WindowsPE')
('Windows', 'XP', '5.1.2600')
Python 2.7.5
Windows: ('XP', '5.1.2600', 'SP3', 'Uniprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 638, in search
  File "site-packages\calibre\gui2\tweak_book\search.py", line 292, in get_regex
  File "site-packages\regex\__init__.py", line 331, in compile
  File "site-packages\regex\__init__.py", line 481, in _compile
error: unknown extension at position 2
when I use the search expression :

(?U)([^\s])Chapter .*</span>

BobC
BobC is offline   Reply With Quote