Conditionals are not supported in this regex dialect.
I have this regex evolved on http://www.regex101.com and it seems to work properly.
When I copy this regex into the OpenApi @Pattern annotation in a Spring Boot 2.5.4 application with springdoc-openapi (tried v1.4.8 and v1.6.1, supporting OpenApi v3) I get the message
This is the regex:
What is the name of the dialect used by OpenApi?
Is it possible to tell OpenApi to use another dialect??
How can I modify the regex to meet OpenApi's requirements/to use the proper dialect?