Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2020, 11:24 PM   #1
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 140
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.
kakkalla is offline   Reply With Quote
Old 06-30-2020, 11:28 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,268
Karma: 16447605
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:
kovidgoyal is offline   Reply With Quote
Advert
Old 06-30-2020, 11:30 PM   #3
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 140
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?
kakkalla is offline   Reply With Quote
Old 06-30-2020, 11:31 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,268
Karma: 16447605
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.
kovidgoyal is offline   Reply With Quote
Old 06-30-2020, 11:32 PM   #5
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 140
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
THANKS! Got it!
kakkalla is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:30 AM.


MobileRead.com is a privately owned, operated and funded community.