GitHub Action
Replace string
v2.5.1
Latest version
Replaces strings with regular expressions.
Required Regular expression to match.
Required Input string.
Required String to use for replacement.
Flags to use when matching. Please refer to MDN for more information.
The replaced string.
uses: frabert/replace-string-action@v2
with:
pattern: 'Hello, (\w+)!'
string: 'Hello, world!'
replace-with: 'I greet you, $1!'