Skip to main content

Complex regular expressions in assertions

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!