Why next code returns true (Saxon-EE 9.2 for .NET)?
matches('some text>', '^[\w ]{3,200}$')
There is no > symbol in the pattern. Thanks.
XQuery:
<regexp-test>
<!-- why true? -->
<test1>{matches('some text>', '^[\w ]{3,200}$')}</test1>
<test2>{matches('some text>', '^[\w ]+$')}</test2>
<test3>{matches('< < >', '^[\w ]+$')}</test3>
<!-- valid: -->
<test4>{matches('some text!', '^[\w ]+$')}</test4>
<test5>{matches('.,', '^[\w ]+$')}</test5>
</regexp-test>
Output:
<regexp-test>
<!-- why true? -->
<test1>true</test1>
<test2>true</test2>
<test3>true</test3>
<!-- valid: -->
<test4>false</test4>
<test5>false</test5>
</regexp-test>