Zum Inhalt springen

Expression Syntax Elements

You 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.

ElementAliasesDescriptionAnwendungsbeispiele
startstartofline, ZeilenanfangAusdruck mit ^ markieren
EndeEnde von, ZeilenendeAusdruck mit $ markieren
dannsuchenfüge der Expression einen String hinzudann "abc"
vielleichtdefiniere einen String, der einmal oder gar nicht vorkommen kannvielleicht "abc"
wortfindet jedes Wort, das Zeichen von a–z, A–Z, 0–9 sowie den Unterstrich (_) enthält
allesakzeptiere jeden String
Bereichfüge der Expression einen Bereich hinzubereich "a,z,0,9"
etwasakzeptiere jeden nicht-leeren String
allesaußeralles außerakzeptiere jeden String außer dem angegebenen Zeichenallesaußer "abc"
einesvonbeliebig, eines voneines der aufgelisteten Zeicheneinesvon "abc"
etwasaußeretwas außeralles nicht-leere außer diesen Zeichenetwasaußer "abc"
BegrenzungZeichenbegrenzung hinzufügenbegrenzung "1,3"
Zeilenumbruchzeilenumbruch, brfindet \r \n (kann nur in Kombination mit anderen Elementen verwendet werden)
Tabulatorfindet Tabulatoren \t (kann nur in Kombination mit anderen Elementen verwendet werden)
mehrerefügt den Multiple-Modifier hinzu
Wortgrenzewortgrenzefindet eine Wortgrenze \b (Position zwischen einem Wort- und einem Nicht-Wort-Zeichen)
Keine Wortgrenzekeine wortgrenzefindet keine Wortgrenze \B (Position, die keine Wortgrenze ist)

Im Editor kannst du verbale Ausdrücke im Erweiterten Filter verwenden, um nach Strings zu suchen, die bestimmten Mustern entsprechen, ähnlich wie reguläre Ausdrücke. 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 start
  • range "A,Z" – starts with a capital letter
  • anything – followed by any characters
  • range "a,z,A,Z,0,9" – allows letters and numbers
  • limit "1,50" – string length between 1 and 50 characters
  • then "." – ends with a period
  • end "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.

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.com

Expression:

then "http", maybe "s", then "://", maybe "www.", anythingbut " "

String example:

Welcome, %s! You have %d new messages.

Expression:

then "%", anyof "s,d"

String example:

Hello, {{user.name}}!

Expression:

then "{{", range "a,z", multiple, then ".", range "a,z", multiple, then "}}"

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 "}}"

String example:

The result is 3.14159

Expression:

start, range "0,9", multiple, then ".", range "0,9", multiple, end

String example:

Quick Access is available now.

Expression:

start, range "A,Z", range "a,z", multiple, then " ", range "A,Z", range "a,z", multiple

String example:

This is a sentence with trailing space

Expression:

start "true", range "A,Z", anything, range "a,z,A,Z,0,9", then " ", end "true"

String example:

#GettingStarted

Expression:

start "true", then "#", something, end "true"

String example:

Click <strong>here</strong> to continue.

Expression:

then "<", something, then ">"

String example:

Please contact us at support@example.com

Expression:

then "@", somethingbut " "

String example:

This string has extra space.

Expression:

then " "

String example:

Enter your name:

Expression:

then ":", end "true"

String example:

Total: $29.99

Expression:

then "$", range "0,9", multiple

String example:

lowerUpper

Expression:

start, range "a,z", multiple, range "A,Z", range "a,z", multiple, end

String example:

Fill out the form with your information.

Expression:

wordboundary, then "form", wordboundary

String example:

Fill out the form with your information.

Expression:

nonwordboundary, then "form", nonwordboundary
War diese Seite hilfreich?