Skip to content

support parse regexp and extract values from matching groups #25856

Closed
@newly12

Description

@newly12

Component(s)

pkg/ottl

Is your feature request related to a problem? Please describe.

dynamically parse string and extract values with regex

Describe the solution you'd like

add an ottl function similar to ParseJson function

ParseRegex(target, regex)

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions