![]() |
#1 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
RegExp Help
Hi all.
When I click on Authors>F, I get the following in the search bar: author_sort:"~(^[F])|(&\s*[F])" I understand that to the left of the OR, the expression is to "find at the beginning (of the author column) anything that begins with the capital letter F. What does the ampersand symbol mean, please? Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
& is used to separate author names, and that search expression is searching author_sort: not authors:
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
Ok. Understood. I know the \s is for white space but I still don't know what the & does?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The & doesnt do anything, its normal text. the regex is searching for an author name at the start of the string or after an & character.
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
THANKS! Got it!
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with a regexp | Terisa de morgan | Library Management | 4 | 06-19-2015 02:57 PM |
Need help with RegExp | theichens | Calibre | 1 | 02-09-2013 08:40 AM |
Help with Regexp for importing Magazines | donnelyn | Library Management | 5 | 08-24-2011 10:56 AM |
Regexp help - I think... | paulfiera | Calibre | 4 | 07-20-2011 03:27 AM |
Multiple line regexp | janvanmaar | Calibre | 19 | 11-02-2010 01:02 PM |