Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

GitHub Action for replacing strings using regex

License

Notifications You must be signed in to change notification settings

Eaton-Vance-Corp/replace-string-action

 
 

Repository files navigation

replace-string GitHub Action

Replaces strings with regular expressions.

Inputs

pattern

Required Regular expression to match.

string

Required Input string.

replace-with

Required String to use for replacement.

flags

Flags to use when matching. Please refer to MDN for more information.

Outputs

replaced

The replaced string.

Example usage

uses: frabert/replace-string-action@v1.1
with:
  pattern: 'Hello, (\w+)!'
  string: 'Hello, world!'
  replace-with: 'I greet you, $1!'

About

GitHub Action for replacing strings using regex

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%