@@ -75,14 +75,19 @@ A <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:</p>
75
75
<b >OR</b >(<b >||</b >), <b >NOT</b >(<b >!</b >) and "<b >-</b >" (Note: they
76
76
must be ALL CAPS).</li >
77
77
</ul >
78
- <p >Wildcard, Fuzzy, Proximity & ; Range Searches:</p >
78
+ <p >Regular Expression, Wildcard, Fuzzy, Proximity & ; Range Searches:</p >
79
79
<ul >
80
+ <li >to perform a regular expression search use the "<b >/</b >" enclosure,
81
+ e.g. /[mb]an/ - will search for man or for ban;
82
+ NOTE: path field search escapes "/" by default, so it only supports
83
+ regexps when the search string <u >starts and ends</u > with "/"
84
+ </li >
80
85
<li >to perform a single character wildcard search use the "<b >?</b >" symbol,
81
86
e.g. te?t</li >
82
87
<li >to perform a multiple character wildcard search use the "<b >*</b >"
83
88
symbol, e.g. test* or te*t</li >
84
- <li >you cannot use a * or ? symbol as the first character of a search
85
- (unless enabled using indexer option -a).</li >
89
+ <li >you can use a * or ? symbol as the first character of a search
90
+ (unless not enabled using indexer option -a).</li >
86
91
<li >to do a fuzzy search(find words similar in spelling, based on the
87
92
Levenshtein Distance, or Edit Distance algorithm) use the tilde,
88
93
"<b >~</b >", e.g. rcs~ </li >
@@ -101,7 +106,7 @@ A <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:</p>
101
106
<a id =" escaping" ><dfn >Escaping special characters:</dfn ></a >
102
107
<p >Opengrok supports escaping special characters that are part of the query
103
108
syntax. Current special characters are:<br />
104
- <b >+ - & ;& ; || ! ( ) { } [ ] ^ " ~ * ? : \ </b ><br />
109
+ <b >+ - & ;& ; || ! ( ) { } [ ] ^ " ~ * ? : \ / </b ><br />
105
110
To escape these character use the \ before the character. For example to search
106
111
for <b >(1+1):2</b > use the query: <b >\(1\+1\)\:2</b >
107
112
</p >
0 commit comments