Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
/ slice-action Public archive

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

Notifications You must be signed in to change notification settings

web3j/slice-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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.3
with:
  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

Watchers

Forks

Packages

No packages published