Modify config file example.

It's not a good idea to specify “perl-regexp” in the config file, because it can
not be overriden yet. 😊
This commit is contained in:
tastytea 2021-05-26 20:19:09 +02:00
parent 7dcf6d599c
commit d107ce5c31
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 7 additions and 5 deletions

View File

@ -93,14 +93,16 @@ occur more than once are merged.
==== Example configuration file
This example makes epubgrep always use Perl regular expressions and search for
mentions of the words thyme and oregano in every book.
This example makes epubgrep always suppress the file names on output, print 2
words of context around matches (unless overridden on the command line) and
search for mentions of the words thyme and oregano in every book.
[source,cfg]
--------------------------------------------------------------------------------
perl-regexp = 1
regexp = \b[Tt]hyme\b
regexp = \b[Oo]regano\b
no-filename
context = 2
regexp = [Tt]hyme
regexp = [Oo]regano
--------------------------------------------------------------------------------
// == EXAMPLES