Expression Syntax Elements
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
In Crowdin übersetzenYou can configure verbal expressions and custom placeholders using a shared set of expression syntax elements. These elements define how specific parts of a string should be matched, based on structure, character types, or formatting patterns.
Verwende die folgenden Elemente, um Verbal Expressions und benutzerdefinierte Platzhalter zu konfigurieren.
| Element | Aliases | Description | Anwendungsbeispiele |
|---|---|---|---|
start | startofline, Zeilenanfang | Ausdruck mit ^ markieren | |
Ende | Ende von, Zeilenende | Ausdruck mit $ markieren | |
dann | suchen | füge der Expression einen String hinzu | dann "abc" |
vielleicht | definiere einen String, der einmal oder gar nicht vorkommen kann | vielleicht "abc" | |
wort | findet jedes Wort, das Zeichen von a–z, A–Z, 0–9 sowie den Unterstrich (_) enthält | ||
alles | akzeptiere jeden String | ||
Bereich | füge der Expression einen Bereich hinzu | bereich "a,z,0,9" | |
etwas | akzeptiere jeden nicht-leeren String | ||
allesaußer | alles außer | akzeptiere jeden String außer dem angegebenen Zeichen | allesaußer "abc" |
einesvon | beliebig, eines von | eines der aufgelisteten Zeichen | einesvon "abc" |
etwasaußer | etwas außer | alles nicht-leere außer diesen Zeichen | etwasaußer "abc" |
Begrenzung | Zeichenbegrenzung hinzufügen | begrenzung "1,3" | |
Zeilenumbruch | zeilenumbruch, br | findet \r \n (kann nur in Kombination mit anderen Elementen verwendet werden) | |
Tabulator | findet Tabulatoren \t (kann nur in Kombination mit anderen Elementen verwendet werden) | ||
mehrere | fügt den Multiple-Modifier hinzu | ||
Wortgrenze | wortgrenze | findet eine Wortgrenze \b (Position zwischen einem Wort- und einem Nicht-Wort-Zeichen) | |
Keine Wortgrenze | keine wortgrenze | findet keine Wortgrenze \B (Position, die keine Wortgrenze ist) |
In the Editor, you can use verbal expressions in the Advanced Filter to search for strings that match specific patterns, similar to regular expressions. You can use it to filter strings based on patterns like punctuation, character types, length, and more.
For example, to find all strings that start with an uppercase letter and end with a period, use the following expression:
start "true", range "A,Z", anything, range "a,z,A,Z,0,9", limit "1,50", then ".", end "true"This expression means:
start "true"– the string begins at the startrange "A,Z"– starts with a capital letteranything– followed by any charactersrange "a,z,A,Z,0,9"– allows letters and numberslimit "1,50"– string length between 1 and 50 charactersthen "."– ends with a periodend "true"– end of the string
Below are several examples of verbal expressions along with the types of strings they help match in your project. These are useful when you want to filter strings with specific content or structure.
Start with Uppercase and End with a Period
Section titled “Start with Uppercase and End with a Period”String example:
A test string.Expression:
start "true", range "A,Z", anything, range "a,z,A,Z,0,9", limit "1,50", then ".", end "true"String example:
Visit http://example.com or https://www.example.comExpression:
then "http", maybe "s", then "://", maybe "www.", anythingbut " "String example:
Welcome, %s! You have %d new messages.Expression:
then "%", anyof "s,d"Strings with Variables in Double Curly Brackets
Section titled “Strings with Variables in Double Curly Brackets”String example:
Hello, {{user.name}}!Expression:
then "{{", range "a,z", multiple, then ".", range "a,z", multiple, then "}}"Strings with Variables in Double Curly Brackets (Including Uppercase Letters and Digits)
Section titled “Strings with Variables in Double Curly Brackets (Including Uppercase Letters and Digits)”String example:
Hello, {{User123.name42}}!Expression:
then "{{", range "a,z,A,Z,0,9", multiple, then ".", range "a,z,A,Z,0,9", multiple, then "}}"Strings That Contain Floating Point Numbers
Section titled “Strings That Contain Floating Point Numbers”String example:
The result is 3.14159Expression:
start, range "0,9", multiple, then ".", range "0,9", multiple, endStrings That Start with Title Case (Two Capitalized Words)
Section titled “Strings That Start with Title Case (Two Capitalized Words)”String example:
Quick Access is available now.Expression:
start, range "A,Z", range "a,z", multiple, then " ", range "A,Z", range "a,z", multipleString example:
This is a sentence with trailing spaceExpression:
start "true", range "A,Z", anything, range "a,z,A,Z,0,9", then " ", end "true"Strings Starting with a Hash Symbol (e.g., Hashtags or Anchors)
Section titled “Strings Starting with a Hash Symbol (e.g., Hashtags or Anchors)”String example:
#GettingStartedExpression:
start "true", then "#", something, end "true"String example:
Click <strong>here</strong> to continue.Expression:
then "<", something, then ">"Strings Containing an Email Address Format
Section titled “Strings Containing an Email Address Format”String example:
Please contact us at support@example.comExpression:
then "@", somethingbut " "Strings with Double Spaces (Possible Spacing Issue)
Section titled “Strings with Double Spaces (Possible Spacing Issue)”String example:
This string has extra space.Expression:
then " "String example:
Enter your name:Expression:
then ":", end "true"Strings with a Currency Symbol Followed by Digits
Section titled “Strings with a Currency Symbol Followed by Digits”String example:
Total: $29.99Expression:
then "$", range "0,9", multipleString example:
lowerUpperExpression:
start, range "a,z", multiple, range "A,Z", range "a,z", multiple, endString example:
Fill out the form with your information.Expression:
wordboundary, then "form", wordboundaryString example:
Fill out the form with your information.Expression:
nonwordboundary, then "form", nonwordboundary