mirror of https://github.com/apache/lucene.git
- Javadoc typos
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533184 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ddc153ac37
commit
1b4417fb90
|
@ -39,18 +39,18 @@ import java.util.regex.Pattern;
|
|||
* "pattern" is the regular expression.
|
||||
* "group" says which group to extract into tokens.
|
||||
*
|
||||
* group=-1 (the default) is equuivolent to "split". In this case, the tokes will
|
||||
* be equivolent to the output from:
|
||||
* group=-1 (the default) is equivalent to "split". In this case, the tokens will
|
||||
* be equivalent to the output from:
|
||||
*
|
||||
* http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#split(java.lang.String)
|
||||
*
|
||||
* Using group >= 0 selects the matching group as the token. For example, it you have:
|
||||
* Using group >= 0 selects the matching group as the token. For example, if you have:
|
||||
*
|
||||
* pattern = \'([^\']+)\'
|
||||
* group = 0
|
||||
* input = aaa 'bbb' 'ccc'
|
||||
*
|
||||
* the output will be two tokens: 'bbb' and 'ccc' (including the ' marks). With the same input
|
||||
* the output will be two tokens: 'bbb' and 'ccc' (including the ' marks). With the same input
|
||||
* but using group=1, the output would be: bbb and ccc (no ' marks)
|
||||
*
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue