Skip to content

Regex Parser Action

Actions
Parses a string using a regex and outputs the matched groups
v1.0.1
Latest
Star (0)

Tags

 (1)

Navigation

Parsing

steps:
  - name: Parse shit from string
    id: shit
    uses: release-kit/regex@v1
    with:
      string: 'aaa123123bbb'
      pattern: '^aaa(?<numbers>.*)bbb$'

Using a result

- name: Use parsed version
  run: |
    echo "${{ steps.shit.outputs.numbers }}" # 123123

Options

  • string (required) - a string to be parsed
  • pattern (required) - regex to parse the string

Outputs

Each output key is the matched named group from your pattern

Regex Parser Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Parses a string using a regex and outputs the matched groups
v1.0.1
Latest

Tags

 (1)

Regex Parser Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.