Complex regular expressions in assertions - Cloud

Talend Cloud API Tester User Guide

Version
Cloud
Language
English (United States)
Product
Talend Cloud
Module
Talend API Tester
Content
Design and Development > Testing APIs

Some assertions containing complex regular expressions may fail when running tests with the Maven plugin.

Assertions with regular expressions such as (?<year>[0-9]{4}), which contains a named group, are supported by the Talend Cloud API Tester extension, but may fail when using the Maven plugin.

To solve this issue, you can remove the named group and use the following regex instead: ([0-9]{4}). It is still effective and does not cause any issues with the plugin.