IBM Support

How to use special characters to name an element in Rational Rhapsody

Question & Answer


Question

How do you use special characters like open bracket ( [ ), close bracket ( ] ) and dot (.) in IBM Rational Rhapsody?

Cause

You would like to use special characters in the elements name field.

For example, you would like to name an Item flow as TestFlow[2]

Answer

You need to modify the Rational Rhapsody property General::Model::NamesRegExp

For example, to use open and close bracket, you need to set the property value as:

^(([a-zA-Z_][]a-zA-Z0-9_\[]*)|(operator.+))$

Note
: It is not possible to use dot (.) in an element name in Rational Rhapsody.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"8.0.1;8.0;7.6.1.2;7.6.1.3;7.6.1.1;7.6.0.1;7.6;7.6.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21628905