--- title: regexp.getString() function description: > `regexp.getString()` returns the source string used to compile a regular expression. menu: flux_0_x_ref: name: regexp.getString parent: regexp identifier: regexp/getString weight: 101 --- `regexp.getString()` returns the source string used to compile a regular expression. ##### Function type signature ```js (r: regexp) => string ``` {{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}} ## Parameters ### r ({{< req >}}) Regular expression object to convert to a string.