This project is no longer under active development and has been archived. The repository is kept for historical purposes and read-only access. No further updates or pull requests will be considered.
The slice
method extracts parts of a string and returns the extracted parts in a new string.
Use the start and end parameters to specify the part of the string you want to extract.
The first character has the position 0, the second has position 1, and so on.
Tip: Use a negative number to select from the end of the string.
Required What to substring.
Required The position where to begin the extraction. First character is at position 0.
The position (up to, but not including) where to end the extraction. If omitted, selects all characters from the start-position to the end of the string.
A String, representing the extracted part of the string.
uses: web3j/slice-action@v1.3
with:
value: 'Mona the Octocat'
start: '9'
Result: Octocat