Skip to content

Regex Replace

Actions
Allows you to perform a regex replace within the action script
v1.4
Latest
Star (9)

Tags

 (1)

Regex Replace

Implements JavaScript replace() method.

Example

- name: Find & Replace
  id: hello
  uses: ashley-taylor/[email protected]
  with:
    value: "Hello, world!"
    regex: "world"
    flags: "" # Optional, defaults to "g"
    replacement: "universe"
- name: Print Result
  run: echo "${{ steps.hello.outputs.value }}"

Regex Replace 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

Allows you to perform a regex replace within the action script
v1.4
Latest

Tags

 (1)

Regex Replace 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.