--- title: regexp.getString() function description: > `regexp.getString()` returns the source string used to compile a regular expression. menu: flux_v0_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/function-type-signatures/). {{% /caption %}} ## Parameters ### r ({{< req >}}) Regular expression object to convert to a string.