Regular Expression Reference

 

Expression Filter – MP Authoring and Groups

Construct Syntax
Any Character .
Character in Range [ ]
Character not in range [^ ]
Beginning of Line ^
End of Line $
Or |
Group ( )
0 or 1 matches ?
0 or more matches *
1 or more matches +
Exactly N matches {n}
At least N matches {n, }
At most N matches { , n}
N to M Matches {n, m}
New line character \n
Tab character \t

Note: Wildcards (below) can also be used in group calculation to match patterns.
Note:
Be aware that if you are creating groups by using ‘matches regular expression’, this operator matches string with case sensitivity by default.  In these cases, you can turn off the case sensitivity matching by using syntax as follows.

Case insensitive syntax:  (?i:pattern)

Criteria Expression – Command Shell

Operator Description
=, == Evaluates to true if the left and right operand are equal.
!=, <> Evaluates to true if the left and right operand are unequal.
> Evaluates to true if the left operand is greater than the right operand.
< Evaluates to true if the left operand is less than the right operand.
>= Evaluates to true if the left operand is greater than or equal to the right operand.
<= Evaluates to true if the left operand is less than or equal to the right operand.
LIKE Evaluates to true if the left operand matches the pattern that is defined by the right operand. Use the characters in the wildcard table later in this topic to define the pattern.
MATCHES Evaluates to true if the left operand matches the regular expression defined by the right operand.
IS NULL Evaluates to true if the value of the left operand is null.
IS NOT NULL Evaluates to true if the value of the left operand is not null.
IN Evaluates to true if the value of the left operand is in the list of values defined by the right operand.

Note: The IN operator is valid for use only with properties of type Guid.

AND Evaluates to true if the left and right operands are both true.
OR Evaluates to true if either the left or right operand is true.
NOT Evaluates to true if the right operand is not true.

Note: Be aware that criteria expression ‘matches’ operator is case sensitive.
Note: Wildcards (below) can also be used in criteria expression to match patterns.

Wildcards – Views, Subscriptions, Command Shell, Groups

Note: The resultant view query sent to the operational database is in the form of a literal pattern match.

Wildcard Description
% A wildcard that matches any number of characters.
_ A wildcard that matches a single character.
[] A wildcard that matches any one character that is enclosed in the character set.
Note: Brackets are only use to match a MonitoringObject Name property. See below image for explanation.
[^] A wildcard that matches any one character that is not enclosed in the character set.
Note: Brackets are only use to match a MonitoringObject Name property. See below image for explanation.
Advertisements
This entry was posted in Authoring and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s