Hi,
I am getting unexpected matches when using the following regex:
^[^\{]*\{[^\{]*$
My intention is to match segments that contain exactly one { character. To enforce this, I am using ^ and $ to anchor the pattern to the beginning and end of the segment.
For some reason, though, this doesn’t seem to be working as you can see in the second match below.
My expectation is that this segment should not be matched at all. Instead, Xbench appears to be matching only a substring of the segment, and I am struggling to understand why.
Could someone clarify this behavior? Is Xbench evaluating the regex against the entire segment, or can it match substrings even when ^ and $ are used?
Any insight would be greatly appreciated. ![]()
