[DOCS] Fix pattern replace token filter intro (#64189) (#64218)

Removes an incorrect statement about anchoring regex patterns on tokens.

Co-authored-by: Elasticsearch addict <amitmbm87@gmail.com>
This commit is contained in:
James Rodewig 2020-10-27 10:35:34 -04:00 committed by GitHub
parent 566d1fd459
commit 50d806dc9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@ https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html[Java's
regular expression syntax]. By default, the filter replaces matching
substrings with an empty substring (`""`).
Regular expressions cannot be anchored to the
beginning or end of a token. Replacement substrings can use Java's
Replacement substrings can use Java's
https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html#appendReplacement-java.lang.StringBuffer-java.lang.String-[`$g` syntax] to reference capture groups
from the original token text.