RegExpr object allows using regular expressions in DelphiScript. This way, you can perform search and replace operations over the text fragments that match the specified regular expression pattern. Also, you can use regular expressions to validate user input data.
To get the object in your tests, use the
Please read the Regular Expressions Syntax topic to learn how to compose regular expressions.
RegExpr object is available only if the HISUtils plugin is enabled.
This plugin is installed and enabled by default during the TestComplete installation. You can check the plugin status in the File > Install Extensions dialog in TestComplete. You can find the plugin in the Common group.
The following code obtains the text that matches a regular expression and posts the text to the test log.