Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Archive Notice

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.

Slice Javascript action

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.

Inputs

value

Required What to substring.

start

Required The position where to begin the extraction. First character is at position 0.

end

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.

Outputs

result

A String, representing the extracted part of the string.

Example usage

uses: web3j/slice-action@v1.3with:
value: 'Mona the Octocat'start: '9'

Result: Octocat

About

Extracts parts of a string and returns the extracted parts in a new string.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages