regexp.findString() function

    *Output data type: String*

    *Data type: Regexp*

    v

    *Data type: String*

    Examples

    Find the first regular expression match in each row
    1. import "regexp"
    2. |> map(fn: (r) => ({
    3. r with
    4. match: regexp.findString(r: r.regexp, v: r.message)
    5. })
    6. )

    Related articles