Syntax for Regular Expressions
发布时间:2026-09-07 | 浏览:1
Español – América Latina
Português – Brasil
Set up & manage services
Google Workspace Help
Set up & manage services
To create a regular expression, you must use specific syntax—that is, special characters and construction rules. For example, the following is a simple regular expression that matches any 10-digit telephone number, in the pattern nnn-nnn-nnnn:
The following table describes some of the most common special characters for use in regular expressions. These characters are categorized as follows:
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 2026-08-26 UTC.