=Expressions=
{{Mark|Introduced with Version 9.1:}} ternary if, elvis operator, if without else
Some of the extensions that have been added to BaseX may also be made available in other XQuery processors in the near future.
==Regular Expressions==
{{Mark|Introduced with Version 9.1:}}
In analogy with Saxon, you can specify the flag {{Code|j}} to revert to Java’s default regex parser. For example, this allows you to use the word boundary option {{Code|\b}}, which has not been included in the XQuery grammar for regular expressions:
This pragma can be helpful when debugging your code.
{{Mark|Introduced with Version 9.1:}}
In analogy with option declarations and function annotations, [[Transactions#XQuery_Locks|XQuery Locks]] can also set via pragmas:
==XQuery Locks==
{{Mark|Introduced with Version 9.1:}}
In analogy with option declarations and pragmas, [[Transactions#XQuery_Locks|XQuery Locks]] can also set via annotations: