-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Adds note about escaping backslashes in regex #89276
Conversation
Pinging @elastic/es-docs (Team:Docs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @abdonpijpelink, for the fast response. It looks good to me, @crisdarocha might have more feedback as he's been involved in the investigation that led to this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the change. Example is clear.
Would love to hear what Joe and Tim think about the topic. If this is enough, or if we need to be even more explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding this!
* [DOCS] Adds note about escaping backslashes in regex * Fix typo * Simplify example
* [DOCS] Adds note about escaping backslashes in regex * Fix typo * Simplify example
The backslash character is an escape character in both JSON strings and regular expressions. This PR adds a note with an example about the need to escape both.
You can preview the change here: https://elasticsearch_89276.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/regexp-syntax.html#regexp-reserved-characters