influxdata / influxdata/docs-v2

Flux function regexp.replaceAllString should describe how expansion works

Open
#1,536 0 comments 0 reactions 1 assignee Claimed by @pierwill View on GitHub
Flux
Dominant language
JavaScript
Stars
82
Forks
326
Avg merge
1d 1h
Merged PRs (30d)
82

Description

The documentation for the Flux function `regexp.replaceAllString` should describe that one can capture text from the regexp and then reuse it to replace text with `$1`, etc, as in this example:
https://golang.org/pkg/regexp/#Regexp.ReplaceAll

In general, Flux regexp functions are backed by equivalent functions in the Go standard library.

##### Relevant URLs
https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/regexp/replaceallstring/

##### What products and version are you using?

2.0 Cloud

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.