--- title: regexp.quoteMeta() function description: > `regexp.quoteMeta()` escapes all regular expression metacharacters in a string. menu: flux_v0_ref: name: regexp.quoteMeta parent: regexp identifier: regexp/quoteMeta weight: 101 --- `regexp.quoteMeta()` escapes all regular expression metacharacters in a string. ##### Function type signature ```js (v: string) => string ``` {{% caption %}} For more information, see [Function type signatures](/flux/v0/function-type-signatures/). {{% /caption %}} ## Parameters ### v ({{< req >}}) String that contains regular expression metacharacters to escape. ## Examples ### Escape regular expression metacharacters in a string ```js import "regexp" regexp.quoteMeta(v: ".+*?()|[]{}^$")// Returns "\.\+\*\?\(\)\|\[\]\{\}\^\$" ```