index 4d1f1794ca336eb1d2fe0f489ab111f41ecc0858..3a21129021adae0b3396c3be72d374b9966fd985 100644 (file)
is a JSON path string literal, written according to the rules given in
<xref linkend="datatype-jsonpath"/>. This means in particular that any
backslashes you want to use in the regular expression must be doubled.
- For example, to match strings that contain only digits:
+ For example, to match string values of the root document that contain
+ only digits:
<programlisting>
-$ ? (@ like_regex "^\\d+$")
+$.* ? (@ like_regex "^\\d+$")
</programlisting>
</para>
</sect3>