Adjust regex for test with opening parenthesis in character classes

Michael Paquier <michael@paquier.xyz>

Commit: 31ee5ec698ed04c8ffd7e804b9d671bf31cb1ae4
Author: Michael Paquier <michael@paquier.xyz>
Date: 2025-05-28T00:43:51Z
Releases: 13.22
Adjust regex for test with opening parenthesis in character classes

As written, the test was throwing an error because of an unbalanced
parenthesis.  The regex used in the test is adjusted to not fail and to
test the case of an opening parenthesis in a character class after some
nested square brackets.

Oversight in d46911e584d4.

Discussion: https://postgr.es/m/16ab039d1af455652bdf4173402ddda145f2c73b.camel@cybertec.at

Files

PathChange+/−
src/test/regress/expected/strings.out modified +7 −2
src/test/regress/sql/strings.sql modified +1 −1

Discussion