RegularExpressionType
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
The RegularExpressionType is a localizable message type used to match text with regular expressions.
It contains a required map of named entities, where each entity includes a list of regular expressions.
Each Entity object within the map represents an entity with a required list of regular expressions for comparison using RE2 syntax.
Optionally, the Entity object can include a display field for canvas-enabled apps to show elements once an entity is extracted.
Type that matches text by regular expressions. This message is localizable.
YAML representation
entities :
string: object (Entity )
Fields
entities
map (key: string, value: object (Entity ))
Required. Named map of entities which each contain Regex strings.
An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Entity
Represents an entity object that contains the regular expression that is used for comparison.
YAML representation
display :
object (EntityDisplay )
regularExpressions :
- string
Fields
display
object (EntityDisplay )
Optional. Elements that will be displayed on the canvas once an entity is extracted from a query. Only relevant for canvas enabled apps.
regularExpressions[]
string
Required. Uses RE2 regex syntax (See https://github.com/google/re2/wiki/Syntax for more details)
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 2024-09-18 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 2024-09-18 UTC."],[],[]]