| Syntax rules | Some examples | The main types and BibTeX fields | To know more |
condition on
$typeSome examples
negative condition
condition on YEAR and AUTHOR
condition on the existence of a field :
condition on the TITLE field
search for references in which Smith is the
first author
search for references whose title begins
by 'C' and is followed by a blank
search for references whose title includes
'C++' and is followed by a blank
and
c2 (or c1 & c2) ;
or
c2 (or c1 | c2);
not c (or
! c) ;
exists f
(or ? f) where f is a field name ;
$key which corresponds to the key of
an entry.
$type which corresponds to the type
of an entry (Article, InProceedings, etc.)
$^.*+?[] matches itself, see
Table 1 for the meaning of the special characters.
.matches any character except newline [..]character set; ranges are denoted with -, as in[a-z]; an initial^, as in[^0-9], complements the set^matches the beginning of the string matched $matches the end of the string matched \bmatches word boundaries \quotes special characters regexp *matches regexp zero, one or several times regexp +matches regexp one or several times regexp ?matches regexp once or not at all regexp1 \|regexp2alternative between two regular expressions, this operator has low priority against *,+and?\(regexp\)grouping regular expression
Table 1: Syntax of regular expressions
Cond ® Cond andCond | CondorCond |notCond |existsIdCond ® Cond &Cond | Cond|Cond |!Cond |?Id| Expr Comp Expr | Expr :String |(Cond)Comp ® =|>|<|>=|<=|<>Expr ® Id | String | Int | $key|$typeId ® [ a-zA-Z]+String ® "([^"\] |\"|\\)*"|'([^'\] |\'|\\)*'Integer ® [ 0-9]+
Table 2: Syntax of conditions
Copyright © INRA 2014 | Legal notice