Page tree
Skip to end of metadata
Go to start of metadata

Introduction

AIP Console uses the Java Regular Expression system for defining Regular Expressions items used in the following features:

  • Transaction configuration rules
  • Excluded table names for transaction built-in data entities
  • Architecture models and Quality Rules

You can find out more about this here: https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.

Note that the Reference Finder does not use Java Regular Expressions - it uses Python Regular Expressions instead.

Example patterns

Some example patterns are shown below:

String searchedRegular expression to enter
Strings containing "src"src
Strings exactly matching "src"^src$
Strings starting with "src"^src
Strings ending with "src"src$
A string exactly matching "src"/src$
A string exactly matching ".src"/\.src$
One or more upper case letters, but not zero[A-Z]+
Any sequence of characters or any length - i.e. match all tables.*

Limitations

Number of charactersYou can enter a Regular Expression of up to 500 characters.
String matching

By default AIP Console matches only part of the string corresponding to the Regular Expression you have entered, rather than the entire string. As such to match an entire string please use the ^ and $ characters around the required string.


Reserved characters

The following characters are "reserved characters" and therefore must be "escaped" with a backslash before being used in a Regular Expression:

. ( ) [ ] ^ $

So, for example to match for an item (a folder in this case) entitled ComplexityVolume(PercentageofLOC), you will need to enter ^ComplexityVolume\(PercentageofLOC\) in the Regular expression field. Please see the section entitled "Backslashes, escapes, and quoting" in https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information.

  • No labels