You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The supplied flags, as a string; or the zero-length string if no flags were supplied.</p>
223
+
</fos:meaning>
224
+
</fos:field>
225
+
<fos:field name="matches" type="fn($s as xs:string) as xs:boolean" required="true">
226
+
<fos:meaning>
227
+
<p>An arity-one function that can be used to test whether the supplied string <var>$s</var> matches
228
+
the regular expression. If <var>R</var> is a <code>compiled-regex-record</code>
229
+
produced by the function <function>fn:regex</function>, then the effect
230
+
of the expression <code>R?matches($s)</code> is defined
231
+
to be the same as the result of <code>fn:matches($s, R?regex, R?flags)</code>.</p>
232
+
</fos:meaning>
233
+
</fos:field>
234
+
<fos:field name="tokenize" type="fn($s as xs:string) as xs:string*" required="true">
235
+
<fos:meaning>
236
+
<p>An arity-one function that can be used to split the supplied string <var>$s</var> on
237
+
separators that match
238
+
the regular expression. If <var>R</var> is a <code>compiled-regex-record</code>
239
+
produced by the function <function>fn:regex</function>, then the effect
240
+
of the expression <code>R?tokenize($s)</code> is defined
241
+
to be the same as the result of <code>fn:tokenize($s, R?regex, R?flags)</code>.</p>
242
+
</fos:meaning>
243
+
</fos:field>
244
+
<fos:field name="replace" type="fn($s as xs:string, $replacement as (xs:string | fn(xs:untypedAtomic, xs:untypedAtomic*) as item()?)?) as xs:string*" required="true">
245
+
<fos:meaning>
246
+
<p>An arity-two function that can be used to replace parts of the supplied string <var>$s</var> that match
247
+
the regular expression. If <var>R</var> is a <code>compiled-regex-record</code>
248
+
produced by the function <function>fn:regex</function>, then the effect
249
+
of the expression <code>R?replace($s, $rep)</code> is defined
250
+
to be the same as the result of <code>fn:replace($s, R?regex, $rep, R?flags)</code>.</p>
251
+
</fos:meaning>
252
+
</fos:field>
253
+
<fos:field name="analyze-string" type="fn($s as xs:string) as element(fn:analyze-string-result)" required="true">
254
+
<fos:meaning>
255
+
<p>An arity-one function that can be used to process a string against the regular expression
256
+
and return all the matching and non-matching substrings, plus matching groups, in an XML structure.
257
+
If <var>R</var> is a <code>compiled-regex-record</code>
258
+
produced by the function <function>fn:regex</function>, then the effect
259
+
of the expression <code>R?analyze-string($s)</code> is defined
260
+
to be the same as the result of <code>fn:analyze-string($s, R?regex, R?flags)</code>.</p>
261
+
</fos:meaning>
262
+
</fos:field>
263
+
<fos:field name="matching-segments" type="fn($s as xs:string) as fn:matching-segment-record*" required="true">
264
+
<fos:meaning>
265
+
<p>An arity-one function that can be used to process a string against the regular expression
266
+
and return details of all the matching substrings, together with their captured groups.
267
+
The result is returned as a sequence of records of type <code>fn:matching-segment-record</code>.
0 commit comments