☰  
  • Products
    • AllSync
    • AllDup
  • Order
    • AllSync Prices
    • AllSync Product Editions
    • AllSync Licensing Model
    • Ordering FAQ
  • Download
    • AllSync Demo Version
    • AllDup (Freeware)
    • AllSync Full Version
  • Support
  • Contact
DE EN
 
  • About AllSync
  • Product Description
  • Product Editions
  • Program Features
  • System Requirements
  • Application Examples
  • Demo Version
  • License
  • Licensing Model
  • License Agreement
  • Order Licenses
  • Installation
  • Installation Files
  • License Entry
  • Getting Started
  • Important Notes
  • Basic Concepts
  • Step-by-Step Guides
  • Using the Help File
  • AllSync
  • Main Window
  • Menu Bar
  • Profile List
  • Report
  • Log
  • Options
  • Progress Indicator
  • Keyboard Shortcuts
  • QuickSync
  • Command Line
  • Profiles
  • Profile
  • Profile Properties
  • Profile Assistant
  • Profile Chaining Manager
  • Create Profile Link
  • Import Profiles from Version 2 or 3
  • AllSync Scheduler
  • Scheduler
  • Task
  • Log
  • Options
  • Import Tasks from Version 2 or 3
  • AllSync Service Tool
  • Scheduler Service
  • Tools
  • AllSync Data Export
  • AllSync Data Import
  • AllSync Update Tool
  • File-Lock Analyzer
  • Copy Method Benchmark
  • Log Manager
  • Language Editor
  • Shortcut Assistant
  • ZIP File Manager
  • Information
  • FAQ – Frequently Asked Questions
  • Tips & Tricks
  • Performance Optimization
  • Backup Methods
  • Software Recommendations
  • Daylight Saving Time Adjustment
  • Reference
  • Active Setup
  • File and Folder Attributes
  • Error Messages
  • Date and Time Placeholders
  • Placeholders for Filters
  • RegEx – Regular Expressions
  • Windows Naming Conventions
  • Windows Environment Variables
AllSync 4 Documentation

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


Professional Software Solutions for Windows
Chonburi, Thailand


🌐︎
Navigation
  • Home
  • Customer Center
  • Support
  • Contact
  • Sitemap
Products
  • AllSync
  • AllDup

Download
  • AllSync
  • AllDup
Order
  • Online-Shop
  • Prices
↑ Back to top
⎙ Print

Copyright © 2000 - 2026 MTSD. All Rights Reserved.  |  About Us  |  Privacy Policy