docs-v2/content/flux/v0/stdlib/regexp/getstring.md

1.3 KiB

title description menu weight
regexp.getString() function `regexp.getString()` returns the source string used to compile a regular expression.
flux_v0_ref
name parent identifier
regexp.getString regexp regexp/getString
101

regexp.getString() returns the source string used to compile a regular expression.

Function type signature
(r: regexp) => string

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Parameters

r

({{< req >}}) Regular expression object to convert to a string.