This article will show GL Strings users how to monitor for forbidden characters in string IDs or within a string’s value.
Table of Contents
- How to Configure String ID and String Value Validations
- How to Filter for Failed Validations
- Regular Expression Examples
GL Strings users can enforce forbidden characters in both string ID names and within string values (Draft and Target). Only content manually edited on GL Strings is monitored for forbidden characters. These characters can be configured in the validation section of the Project Settings page and the sets of characters must be defined as a regular expression. Users can then filter for failed value validations in the String Management Interface.
- Navigate to the project on the dashboard and click Project Settings
- Navigate to the Input Validation section
- Enter the forbidden characters as a range or as a comma separated list in the String ID Validation section and/or the String Value Validation section. The sets of characters must be defined as a regular expression.
- The String ID Validations will warn users when a forbidden character is included in a String ID
- The String Value Validation will warn users when a forbidden character is included in a string’s content
Back to Top
How to Filter for Failed Validations
- Open the String Management Interface
- Click the filter icon in the right-hand corner
- Hover over With Issues then click Validation Failed
Back to Top
Regular Expression Examples
- Only Lowercase: to only allow lowercase characters and no others such as numbers or special characters, use
[^a-z]
. To only forbid uppercase characters, use [A-Z]
- No Numbers: to forbid only numbers use
\d
- Only Numbers: to forbid all characters other than numbers use
[^\d]
- Specific Characters: to forbid specific special characters like ._$ use the following expression
[._$]
Back to Top