Module Values.RewriteConfigSource

Information about a rewrite transform. This transform matches a pattern and replaces it with the specified string.

Sourcetype nonrec t = {
  1. regex : StringValue.t;
    (*

    The regular expression to match in the input string. The maximum length of the string is 1,024 characters.

    *)
  2. replace : StringValue.t;
    (*

    The replacement string to use when rewriting the matched input. The maximum length of the string is 1,024 characters. You can specify capture groups in the regular expression (for example, $1 and $2).

    *)
}
Sourceval context_ : string
Sourceval make : regex:StringValue.t -> replace:StringValue.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of StringValue.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t