☰ MTSD
  • AllSync Home page
  • Products
    • AllSync
    • AllDup
  • Order
    • AllSync Price List
    • AllSync Product Editions
    • AllSync Licensing Model
    • Order FAQ
    • Upgrade to AllSync Version 4
    • Upgrade AllSync Product Edition
  • Download
    • AllSync
    • AllDup
    • Customer Download Area
  • Support
    • Forum
    • Support Form
  • Contact
    • Contact Form
Search Customer Download Area Online Shop Customer Account DeutschDE
 
X
  • AllSync
  • Description
  • System Requirements
  • Product Editions
  • Features
  • Practical Examples
  • Version History
  • Screenshots
  • Awards
  • Publications
  • Download
  • AllSync Demo Version
  • AllSync Full Version
  • Recommendations
  • Help
  • FAQ
  • Manual
  • Guides
  • Support Forum
  • Translations
  • Web
  • Links
AllSync 4 Manual

RegEx – Regular Expressions

A regular expression is a pattern that is compared with the text to be examined and checked for matches. AllSync uses Microsoft VBScript Regular Expressions 5.5 as the interpreter for regular expressions.

  • Placeholders and control characters
  • Regular sample expressions for individual characters
  • Regular sample expressions for full expressions
  • Helpful websites for using RegEx


Placeholders and control characters

ExpressionSyntaxDescription
Line start^Starts the match at the beginning of the line. Only relevant at the beginning of an expression.
Or|Checks for a match before or after the '|' character. Mainly used in a group, e.g. "(Back)|(Foot)massage" matches "Back massage" and "Foot massage".
Line end$Anchors the match at the end of the line. Only relevant at the end of an expression.
Character not in character set[^]Checks for any character not in the character set following '^'.
Marked expression{}Marks the matching text with the expression in parentheses.
Grouping()Groups a subexpression.
N-th marked text\NChecks for a match with the text corresponding to the N-th marked expression, where N is a number between 1 and 9.
Any character.Checks for a match with any single character.
One or more+Checks for at least one occurrence of the preceding expression.
Maximum of one or more#Checks for at least one occurrence of the preceding expression and matches as many characters as possible.
Escape\Checks for a match with the character following the backslash (\). Allows you to match characters used in regular expression notation, such as '{' and '^'.
Repeat N times^NChecks for N occurrences of the preceding expression. '[0-9]{4}' matches any four-digit sequence.
Character set[]Checks for a match with any character contained in square brackets []. To define a character range, list the start and end characters separated by a hyphen (-), e.g. [a-z].
Alphanumeric character:aChecks for a match with the expression ([a-zA-Z0-9]).
Letter:cChecks for a match with the expression ([a-zA-Z]).
Decimal digit:dChecks for a match with the expression ([0-9]).
Hexadecimal number:hChecks for a match with the expression ([0-9a-fA-F]+).
Identifier:IChecks for a match with the expression ([a-zA-Z-$][a-zA-Z0-9_$]*).
Relational number:nChecks for a match with the expression (([0-9]+.[0-9]*)|([0-9]*.[0-9]+)|([0-9]+)).
Quoted string:qChecks for a match with the expression (("[~"]*")|('[~']*')).
Alphabetic string:wChecks for a match with the expression ([a-zA-Z]+).
Decimal integer:zChecks for a match with the expression ([0-9]+).
Tab character\tChecks for a match with a tab character, Unicode U+0009.
Unicode character\x#### or \u####Checks for a match with a character given by its Unicode value, where #### is 1 to 4 hexadecimal digits.
Zero or more*Checks for zero or more occurrences of the preceding expression.
Maximum zero or more@Checks for zero or more occurrences of the preceding expression and matches as many characters as possible.


Regular sample expressions for individual characters

SymbolExampleResultUsage
.Ma.ermatches Maier, Majer, MayerAny character
[ ]Ma[iy]ermatches Maier, MayerOne of the characters in brackets
[ - ]b[a-z]dmatches bad, bbd, bcd, bzdA character in the specified range
[^ ]Ma[^iy]ermatches Majer, but not Maier or MayerA character not listed in the brackets
\dBackup \dmatches 'Backup 1', 'Backup 9'A digit (matches [0-9])
\DBackup \Dmatches 'Backup A', but not 'Backup 1'Not a digit (matches [^0-9])
\wBackup \wmatches Backup 1, Backup ALetter, digit, or underscore (matches [a-zA-Z0-9_])
\Wabc\Wefgmatches 'abc efg', but not 'abcdefg'Not a letter, digit, or underscore (matches [^a-zA-Z0-9_])
\tabc\txyzmatches 'abc' and tab and 'xyz'Control character 'Tab'
\nabc\nxyzmatches 'abc' and line break and 'xyz'Control character for line break
\fabc\fxyzmatches 'abc' and form feed and 'xyz'Control character for form feed
\rabc\rxyzmatches 'abc' and line feed and 'xyz'Control character for line feed
\x\x41BCmatches 'ABC''x' is followed by the hexadecimal character value


Regular sample expressions for full expressions

SymbolExampleResultUsage
^^Backupmatches 'Backup' at the beginningmarks the start of the string
$Backup$matches 'Backup' at the endmarks the end of the string
\bung\bmatches 'ung' at the end of a worddenotes a word boundary (between \\w and \\W)
\B\Bausmatches 'Haus' or 'Maus', but not 'aus'denotes anything except a word boundary


Helpful websites

  • Microsoft VBScript Regular Expressions 5.5
  • RegEx Tutorial
  • Regular Expression Tester
  • Regular Expression Syntax

‣ File Comparison
‣ Backup Storage Media
‣ Backup
‣ Synchronize Folders
‣ Windows Backup Software
‣ File Folder Replication
‣ Backup and Restore
‣ File Synchronization
‣ Backup Utility
‣ Synchronize Files on two Computers


Deutsch Deutsch  ·  Site Map  ·  Print Page  ·  Top


© 2000 - 2025  MTSD