Download User Guide

Transcript
Annex
Regular Expression Reminder
Annex
Regular Expression Reminder
The regular expressions engine used for the stemming rules is a PCRE engine (Pearl Compatible
Regular Expression). The following table summarizes the main elements that can be used in the
regular expressions:
\
general escape character with several uses
^
assert start of subject (or line, in multiline mode)
$
assert end of subject (or line, in multiline mode)
.
match any character except newline (by default)
[
start character class definition
]
end character class definition
|
start of alternative branch
(
start subpattern
)
end subpattern
?
extends the meaning of (, also 0 or 1 quantifier, also quantifier minimizer
*
0 or more quantifier
+
1 or more quantifier
{
start min/max quantifier
}
end min/max quantifier
SAP InfiniteInsight® 6.5 SP4 - Explorer - Text Coding User Guide
49