Regular expressions used by IBM MQ Managed File Transfer
IBM® MQ Managed File Transfer uses regular
expressions in a number of scenarios. For example, regular expressions
are used to match user IDs for Connect:Direct® security credentials,
or to split a file into multiple messages by creating a new message
each time a regular expression is matched. The regular expression
syntax used by IBM MQ Managed File Transfer is
the syntax supported by the java.util.regex
API.
This regular expression syntax is similar to, but not the same as,
the regular expression syntax used by the Perl language.
For more information about Java regular expressions, see the Java tutorial Regular Expressions.
Examples
To match all patterns, use the
following regular expression:
.*
To match
all patterns that begin with the string
fte
, use
the following regular expression:
fte.*
To
match all patterns that begin with the string
accounts
followed
by a single digit, and end with .txt
, use the following
regular expression:
accounts[0-9]\.txt