Primeur Online Docs
Data Mover 1.20
Data Mover 1.20
  • 🚀GETTING STARTED
    • What is Primeur Data Mover
    • Main features of Primeur Data Mover
    • Primeur Data Mover deployment
    • Navigate through Primeur Data Mover
  • 📚INFRASTRUCTURE
    • STENG, clusters and servers
      • Adding a cluster and a STENG
      • Deleting a STENG
    • DMZ Gateways
      • Blocking users automatically at the DMZ level 🚀
    • DMZ Clusters
      • Load balancing across active DMZ clusters for outbound file transfers 🚀
  • 👥Actors
    • Who are the actors
    • Create your first actor
    • Configure an actor 🚀
      • Users Tab
      • Groups Tab
      • VFS Tab
      • File Resource Tab
      • Connection Contract Tab
      • Client Connections Tab
    • Search files by actor
    • Actor Lineage 🚀
      • Aggregation of flows by protocol 🚀
      • Lineage with connection contracts 🚀
      • Lineage with input, mediation and output contracts 🚀
      • Lineage with any contract type 🚀
  • 🗄️VIRTUAL FILE SYSTEMS
    • Virtual File Systems (VFS) 🚀
      • Creating a VFS 🚀
      • Configuring a VFS
      • Adding Virtual Paths
      • Modifying and Deleting a VFS
    • Searching files in all VFS
    • Storage Classes 🚀
      • Storage Class: SMB v3 or later versions 🚀
      • Storage Class: Azure Blob Storage 🚀
      • Storage Class: Amazon S3 🚀
      • Storage Class: Google Storage 🚀
      • Storage Class: Local File System 🚀
    • Retention Classes
  • 📝Contracts
    • What is a contract
    • Create your first contract
      • Create an Input Contract
        • Define the contract info
        • Associate the contract with the actor
        • Define the contract actions
        • Set the contract variables
      • Create a Mediation Contract
      • Create an Output Contract
      • Create a Connection Contract
        • Create a contract clause
        • Associate the VFS with file processing rules
        • File Processing Rules
    • Managing contracts 🚀
    • File Resources
      • Creating File Resources
      • Navigating File Resources
      • How to use File Resources
  • 🧱Workflows
    • What is a workflow
    • Create your first workflow template
    • Trigger types
      • Trigger types for input contracts
      • Trigger types for mediation and output contracts
    • Service tasks
      • Standard service tasks
      • Triggerable service tasks 🚀
      • Spazio selectors and filebox metadata management
      • Error management
    • Variables
      • Variables in workflows and contracts
      • Handling process variables
    • Workflow templates
      • System workflow templates
        • Workflow templates for input contracts
        • Workflow templates for mediation contracts
        • Workflow templates for output contracts
      • Custom workflow templates
        • Workflow template toolbar
        • Workflow template Shape repository panel
        • Workflow template working area
        • Workflow template BPMN-diagram panel
      • Error workflow templates
    • Editing workflow templates
    • DataFlow Instance Context (DFIC) 🚀
  • 🛸TRANSPORT PROTOCOLS AND CONNECTORS
    • Data Mover client and server roles
    • Client Connections
      • Client Connection: FTP
      • Client Connection: FTPS
      • Client Connection: SFTP
      • Client Connection: HTTP
      • Client Connection: HTTPS
      • Client Connection: PESIT
      • Client Connection: SMB v3 or later versions
      • Client Connection: POP3 or IMAP 🚀
        • Credentials POP3 or IMAP 🚀
      • Client Connection: SMTP 🚀
        • Credentials SMPT 🚀
      • Client Connection: PR4/PR4S
      • Client Connection: PR5
      • Client Connection: PR5S
      • Client Connection: HDFS
      • Client Connection: HDFSS
      • Client Connection: Amazon S3 🚀
      • Client Connection: Google Cloud Storage
        • Credentials
      • Client Connection: Azure Blob Storage
      • Client Connection: IBM Sterling Connect:Direct
      • Client Connections retry settings
    • Server Connections 🚀
      • Server Connection: FTP
      • Server Connection: FTPS
      • Server Connection: SFTP
      • Server Connection: HTTP
      • Server Connection: HTTPS
      • Server Connection: PeSIT
      • Server Connection: PR4
      • Server Connection: PR5
      • Server Connection: PR5S 🚀
      • Server Connection: IBM Sterling Connect:Direct
    • Protocol Connections Reference
    • Stopping all servers in one go
  • 💻API
    • HTTP MFT Rest API
    • Job Manager APIs 🚀
    • SFTP Server sessions APIs 🚀
    • Audit Logs APIs 🚀
  • 🔓Security
    • Identity and Access Management
    • Users & Groups
      • Setting the password policy
      • Creating Internal Users 🚀
      • Creating Internal Groups
      • Creating External Users
      • Creating External Groups
    • Key Stores and Trust Stores
      • Key Store 🚀
        • Creating a Key 🚀
        • Creating a Certificate 🚀
        • Importing a Key or a Certificate
        • Creating a Symmetric key
        • Examples
      • Trust Store 🚀
        • Importing Keys 🚀
        • Importing Certificates
      • Untrusted Cache 🚀
      • Trusting Keys and Certificates
      • PGP Key Store and PGP Trust Store
        • PGP Key Store
        • Importing keys into the PGP Trust Store
    • ICAP
      • Configuring ICAP
      • Defining an ICAP rule
  • 🎧FILE EVENT LISTENER
    • What is the File Event Listener
    • Configuring File Event Listeners
      • Setting the File Event Listener Engine
      • Defining a contract for the File Event Listener
      • Setting events to be monitored 🚀
    • RegEx Rules 🚀
    • Monitoring File Event Listeners
  • 👑FILE MANAGER
    • What is the File Manager
    • Logging into File Manager
    • Managing the File Manager 🚀
      • The list of results
      • Creating new folders
      • Uploading files
      • Downloading files 🚀
      • Searching for files and folders
      • Deleting files 🚀
      • Bulk actions 🚀
    • File Manager and VFS
    • Customizing File Manager externals
      • The configuration-wui.json file 🚀
      • How to customize the Login window and the logo
      • How to customize the footer
      • How to configure the Upload with Metadata option
      • How to customize bulk actions 🚀
  • 🧑‍⚖️FILE ROUTING
    • What is File Routing 🚀
    • Routing Rules
      • The Rules tab
      • The Categories tab
      • The Output tab
    • How to create a rule 🚀
      • Add metadata 🚀
      • Select ACTIONS
      • Select OUTPUTS
      • Policy for the selection of metadata rules
    • Configuration of the environment in Data One
      • Set up Storage Classes
      • Set up Retention Classes
      • Configure the Actor
      • Set up File Resources
    • Associate the Routing Rule with a Contract
    • Example
  • 📩NOTIFICATION CHANNELS
    • What are Notification Channels
    • Configuring the default Email Notification Channel
    • Configuring a new Email Notification Channel
    • Trusting Certificates
    • Managing Templates
      • Data Watcher Macros
      • Contract Macros
      • ICAP Macros
      • Central Log Macros
      • Email Templates
      • Editing default templates
      • Loading a new template
  • 💬LOGS & AUDIT
    • Logs 🚀
      • Logs options 🚀
      • Troubleshooting error analysis in Logs
    • Audit Options 🚀
      • Export audit logs 🚀
      • List of Audit entity types 🚀
      • Audit message codes 🚀
    • Log Notifiers 🚀
      • FEL message codes
  • 🕒MONITORING
    • Jobs
      • Details about Jobs 🚀
      • jobman.sh CLI
    • Job Manager
    • Job Queues
      • Managing Job Queues
    • File Transfers
      • Ongoing
      • Finished
      • Reports
    • File Transfers Rules
      • Configuring Rules
  • 🧐HOW TO...
    • ... use different DNS names 🚀
    • ... configure a Cron Expression
    • ... configure an application
    • ... customize the header
    • ... run searches in Data Watcher 🚀
    • ... use Data Shaper graphs in Data Mover contracts
    • ... modify DMCFG and deploy it
    • ... tune Data One data retention
    • ... fine tune Data Mover
      • Email sender for the Notification Channel
  • 🗒️RELEASE NOTES
    • Data One 1.20.11
    • Data One 1.20.10
    • Data One 1.20.9
    • Data One 1.20.8
    • Data One 1.20.7
      • Data One 1.20.7.1
    • Data One 1.20.6
    • Data One 1.20.5
    • Data One 1.20.4
    • Data One 1.20.3
    • Data One 1.20.2
    • Data One 1.20.1
    • Data One 1.20.0
Powered by GitBook
On this page
  • Character Classes
  • Predefined Character Classes
  • Boundary Matches
  • Pattern Flags
  • Pattern
  • Matcher
  • Quantifiers
  • Groups & Backreferences
  • Logical Operations
  • 🚀 Date placeholders
  1. FILE EVENT LISTENER

RegEx Rules 🚀

PreviousSetting events to be monitored 🚀NextMonitoring File Event Listeners

Last updated 1 month ago

Java Regular Expressions, also known as RegEx, are sequences of characters that form a search pattern. A RegEX can be used to perform text searches as it defines a set of strings, usually united for a given purpose, i.e. describe what you are searching for.

In the following paragraphs, essential RegEx rules that you might find useful when compiling your RegEx are listed.

For the complete RegEx syntax, refer to the class Pattern of Oracle documentation available at this link:

Character Classes

[abc]

Matches a or b, or c.

[^abc]

Negation, matches everything except a or b, or c.

[a-c]

Range, matches a or b, or c.

[a-c[f-h]]

Union, matches a, b, c, f, g, h.

[a-c&&[b-c]]

Intersection, matches b or c.

[a-c&&[^b-c]]

Subtraction, matches a.

Predefined Character Classes

.

Any character.

\d

A digit: [0-9].

\D

A non-digit: [^0-9].

\s

A whitespace character: [\t\n\xOB\f\r].

\S

A non-whitespace character: [^\s].

\w

A word character: [a-zA-Z_0-9].

\W

A non-word character: [^\w].

Boundary Matches

^

The beginning of a line.

$

The end of a line.

\b

A word boundary.

\B

A non-word boundary.

\A

The beginning of the input.

\G

The end of the previous match.

\Z

The end of the input but for the final terminator, if any.

\z

The end of the input.

Pattern Flags

Pattern.CASE_INSENSITIVE

Enables case-insensitive matching.

Pattern.COMMENTS

Whitespace and comments starting with # are ignored until the end of a line.

Pattern.MULTILINE

One expression can match multiple lines.

Pattern.UNIX_LINES

Only the '\n' line terminator is recognized in the behavior of ., ^, and $.

Pattern

A pattern is a compiler representation of a regular expression.

Pattern compile(String regex)

Compiles the given regular expression into a pattern.

Pattern compile(String regex, int flags)

Compiles the given regular expression into a pattern with the given flags.

boolean matches(String regex)

Tells whether or not this string matches the given regular expression.

String[] split(CharSequence input)

Splits the given input sequence around matches of this pattern.

String quote(String s)

Returns a literal pattern String for the specified String.

Predicate<String> asPredicate()

Creates a predicate which can be used to match a string.

Matcher

A Matcher is an engine that performs match operations on a character sequence by interpreting a pattern.

boolean matches()

Attempts to match the entire region against the pattern.

boolean find()

Attempts to find the next subsequence of the input sequence that matches the pattern.

int start()

Returns the start index of the previous match.

int end()

Returns the offset after the last character matched.

Quantifiers

Greedy

Matches the longest matching group.

Reluctant

Matches the shortest group.

Possessive

Longest match or bust (no backoff).

X?

X??

X?+

X, once or not at all.

X*

X*?

X*+

X, zero or more times.

X+

X+?

X++

X, one or more times.

X{n}

X{n}?

X{n}+

X, exactly n times.

X{n,}

X{n,}?

X{n,}+

X, at least n times.

X{n,m}

X{n,m}?

X{n,m}+

X, at least n but not more than m times.

Groups & Backreferences

A group is a captured subsequence of characters which may be used later in the expression with a backreference.

(...)

Defines a group.

\N

Refers to a matched group.

(\d\d)

A group of two digits.

(\d\d)/\1

Two digits repeated twice. \1 Refers to the matched group.

Logical Operations

XY

X then Y

X|Y

X or Y

🚀 Date placeholders

The RegEx field in the File Event Listener supports specific date placeholders that will be dynamically replaced at runtime.

Syntax

${date:<number of days before or after today's date>,format}

  • today's date is the offset value, and it is 0. You can go back with <-n>, e.g., ${date:-4} or forward with <+n>, e.g.,${date:+1}. For example, if the offset date is 2025-04-10 and you enter ${date:-1}, the resulting date would be 2025-04-09.

These placeholders are supported:

  • TODAY ISO format Format: ${date} or ${date:0} Example: ^cme.${date}.s.pa2.zip$

  • TODAY Format: ${date:0, format} Example: ^ME${date: 0, yyMMdd}.zip$

  • YESTERDAY ISO format Format: ${date:-1} Example: ^IRM2.0_IM_ICUS_${date:-1}.zip

  • YESTERDAY Format: ${date:-1, format} Example: ^OPT${date:-1, MMdd}F.SP6.zip$

  • TOMORROW Format: ${date:+1, format} Example: ^OPT${date:+1, MMdd}F.SP6.zip$

  • Custom PAST DAY A custom number of days in the past from today's date: ${date:-3} Example: ^OPT${date:-3, yyyyMMdd}F.SP6.zip$

  • Custom FUTURE DAY A custom number of days in the future from today's date: ${date:+2} Example: ^OPT${date:+2, yyyyMMdd}F.SP6.zip$

format is the date and time format, which can be specified using the standard notation available at this link: . If no format is specified, the standard ISO8601 format will be used.

🎧
https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html
DateTimeFormatter (Java Platform SE 8)