Escaping characters
Stay organized with collections
Save and categorize content based on your preferences.
By default, searches use
RE2 regular expressions.
To escape characters so they aren't treated as part of a regular expression,
use the \
character. For example, the following example searches for the term
main.java
.
main\.java
For more information see Additional syntax options
in the reference documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-03 UTC."],[[["The default search syntax utilizes RE2 regular expressions for comprehensive and flexible search capabilities."],["To prevent characters from being interpreted as part of a regular expression, escape them using the backslash (`\\`) character."],["Users seeking advanced search functionalities or a deeper understanding of the search syntax can consult the reference documentation for additional syntax options."]]],[]]