IBM Tivoli Composite Application Manager for Application Diagnostics, Version

Frequently used regular expressions

The following list highlights characters and operators most frequently used in regular expressions:


Quotes the character that follows it, which treats that character as a literal character or operator (not a regular expression). When you want the following characters to be treated as literal, precede them with a backslash:
*  ?  +  [  (  )  {  }  ^  $  |  \  .  /
In other words, use a backslash followed by a forward slash (\/) to include a forward slash in a URI filter. Use a backslash followed by a period (\.) to include a period in a URI filter.

Example: to specify the URI pattern, use the following regular expression:

To specify all URIs that begin with, use the following regular expression:


Matches any one character.

Example: to match both ibm2 and ibm3 within a string, use ibm. such as in the following example: http:\/\/www\.ibm.\.com\/

(?: … )

Non-capturing parentheses. Groups the included pattern, but does not provide capturing of matching text. Somewhat more efficient than capturing parentheses.

Example: you can use the non-capturing parenthesis to group expressions to form more complicated regular expressions. To match a URI that starts with one of the following URLs: or, you would do a grouping with a pipe sign (|) (represents or):|(?:sales)/


Matches the preceding element zero or more times. You must quote this character.

Example: the expression, ca*t, matches cat, caat, ct, and caaaaat. The term cabt, would not return as a match.

Parent topic:

Use regular expressions