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.
Boolean. Interprets replace-with
as JSON data. Useful for when replace-with
contains leading or trailing whitespace that would be trimmed away by GitHub.
The replaced string.
uses: frabert/[email protected]
with:
pattern: 'Hello, (\w+)!'
string: 'Hello, world!'
replace-with: 'I greet you, $1!'
Replace string 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.