Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashley-taylor/regex-property-action
https://github.com/ashley-taylor/regex-property-action
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashley-taylor/regex-property-action
- Owner: ashley-taylor
- Created: 2020-03-05T02:25:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T02:53:59.000Z (3 months ago)
- Last Synced: 2024-10-26T09:35:17.908Z (19 days ago)
- Language: JavaScript
- Size: 163 KB
- Stars: 9
- Watchers: 1
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Regex Replace
Implements JavaScript [replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) method.
## Example
```yml
- 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 }}"
```