Still not working. The test file is
spe00095428 The Application of Cutoffs in Integrated Reservoir Studies.pdf
If I use (?P<title>.{8}) I get 00095428 in the title field which is what I want.
I then create a Custom Column called Reference with a look up name of #reference
I then change regular expression to (?P<#reference>.{8}) and I get
calibre, version 0.8.56
ERROR: Unhandled exception: <b>error</b>:bad character in group name
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\main.py", line 324, in commit
File "site-packages\calibre\gui2\preferences\adding.py", line 124, in commit
File "site-packages\calibre\gui2\widgets.py", line 149, in commit
File "site-packages\calibre\gui2\widgets.py", line 146, in pattern
File "re.py", line 190, in compile
File "re.py", line 242, in _compile
error: bad character in group name
What I am I doing wrong?
I appreciate very much your help.
|