ByteChef LogoByteChef

Text Helper

Helper component which contains operations to help you work with text.

Categories: Helpers

Type: textHelper/v1


Actions

Base64 Encode/Decode

Name: base64EncodeDecode

Encode/decode a specified string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text to be Base64 encode or decode.true
operationEncode or DecodeSTRING
Options ENCODE, DECODE
Select whether to encode or decode the text.true

Example JSON Structure

{
  "label" : "Base64 Encode/Decode",
  "name" : "base64EncodeDecode",
  "parameters" : {
    "text" : "",
    "operation" : ""
  },
  "type" : "textHelper/v1/base64EncodeDecode"
}

Output

Type: STRING

Change Type

Name: changeType

Change the type of the input text to number.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe input text to be changed to a number.true

Example JSON Structure

{
  "label" : "Change Type",
  "name" : "changeType",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/changeType"
}

Output

Type: NUMBER

Concatenate

Name: concatenate

Concatenate a list of texts.

Properties

NameLabelTypeDescriptionRequired
textsTextsARRAY
Items [STRING($text)]
A list of texts to concatenate.true
separatorSeparatorSTRINGThe text that separates the texts you want to concatenate.false

Example JSON Structure

{
  "label" : "Concatenate",
  "name" : "concatenate",
  "parameters" : {
    "texts" : [ "" ],
    "separator" : ""
  },
  "type" : "textHelper/v1/concatenate"
}

Output

Type: STRING

Contains

Name: contains

Check if text contains the specified sequence of characters.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue
expressionExpressionSTRINGText to search for.true

Example JSON Structure

{
  "label" : "Contains",
  "name" : "contains",
  "parameters" : {
    "text" : "",
    "expression" : ""
  },
  "type" : "textHelper/v1/contains"
}

Output

Type: BOOLEAN

Escape Characters

Name: escapeCharacters

Escape characters in a string, specified in the input.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text in which you want to escape characters.true
escapeCharactersEscape CharactersARRAY
Items [STRING($escapeCharacter)]
Characters you want to escape.true

Example JSON Structure

{
  "label" : "Escape Characters",
  "name" : "escapeCharacters",
  "parameters" : {
    "text" : "",
    "escapeCharacters" : [ "" ]
  },
  "type" : "textHelper/v1/escapeCharacters"
}

Output

Type: STRING

Extract All by Regular Expression

Name: extractAllRegEx

Extract all strings that match a given pattern.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text on which regular expression will be used on.true
regularExpressionRegular ExpressionSTRINGRegular expression that will be used for extracting strings.true

Example JSON Structure

{
  "label" : "Extract All by Regular Expression",
  "name" : "extractAllRegEx",
  "parameters" : {
    "text" : "",
    "regularExpression" : ""
  },
  "type" : "textHelper/v1/extractAllRegEx"
}

Output

Type: ARRAY

Items Type: STRING

Output Example

[ "" ]

Extract Content from HTML

Name: extractContentFromHtml

Extract content from the HTML content.

Properties

NameLabelTypeDescriptionRequired
contentHTML ContentSTRINGThe full HTML document or fragment to extract data from.true
querySelectorCSS SelectorSTRINGA CSS selector used to locate the element(s) you want to extract (for example: div.article, a[href], #title).true
returnValueReturn ValueSTRING
Options ATTRIBUTE, HTML, TEXT
Specifies what content should be extracted from the matched element(s).true
attributeAttributeSTRINGThe name of the HTML attribute to extract from the matched element(s) (for example: href, src, or class).true
returnArrayReturn ArrayBOOLEAN
Options true, false
If selected, then extracted individual items are returned as an array. If you don't set this, all values are returned as a single string.false

Example JSON Structure

{
  "label" : "Extract Content from HTML",
  "name" : "extractContentFromHtml",
  "parameters" : {
    "content" : "",
    "querySelector" : "",
    "returnValue" : "",
    "attribute" : "",
    "returnArray" : false
  },
  "type" : "textHelper/v1/extractContentFromHtml"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Extract Key by Regular Expression

Name: extractKeyRegEx

Extract first string that match a given pattern.

Properties

NameLabelTypeDescriptionRequired
keyValueObjectKey-Value ObjectOBJECT
Properties {}
The object on which regular expression will be used on.true
regularExpressionRegular ExpressionSTRINGExtract key by regex match.true

Example JSON Structure

{
  "label" : "Extract Key by Regular Expression",
  "name" : "extractKeyRegEx",
  "parameters" : {
    "keyValueObject" : { },
    "regularExpression" : ""
  },
  "type" : "textHelper/v1/extractKeyRegEx"
}

Output

Type: ARRAY

Items Type: STRING

Output Example

[ "" ]

Extract by Regular Expression

Name: extractRegEx

Extract first string that match a given pattern.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text on which regular expression will be used on.true
regularExpressionRegular ExpressionSTRINGRegular expression that will be used for extracting strings.true

Example JSON Structure

{
  "label" : "Extract by Regular Expression",
  "name" : "extractRegEx",
  "parameters" : {
    "text" : "",
    "regularExpression" : ""
  },
  "type" : "textHelper/v1/extractRegEx"
}

Output

Type: STRING

Extract URLs

Name: extractUrls

Extract all of the URLs from a given piece of text, returning them as a list.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text from which to extract URLs.true

Example JSON Structure

{
  "label" : "Extract URLs",
  "name" : "extractUrls",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/extractUrls"
}

Output

Type: ARRAY

Items Type: STRING

Output Example

[ "" ]

Format Currency

Name: formatCurrency

Format currency to the specified denomination.

Properties

NameLabelTypeDescriptionRequired
currencyCurrencySTRING
Options ADP, AED, AFA, AFN, ALL, AMD, ANG, AOA, ARS, ATS, AUD, AWG, AYM, AZM, AZN, BAM, BBD, BDT, BEF, BGL, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYB, BYN, BYR, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CSD, CUC, CUP, CVE, CYP, CZK, DEM, DJF, DKK, DOP, DZD, EEK, EGP, ERN, ESP, ETB, EUR, FIM, FJD, FKP, FRF, GBP, GEL, GHC, GHS, GIP, GMD, GNF, GRD, GTQ, GWP, GYD, HKD, HNL, HRK, HTG, HUF, IDR, IEP, ILS, INR, IQD, IRR, ISK, ITL, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LUF, LVL, LYD, MAD, MDL, MGA, MGF, MKD, MMK, MNT, MOP, MRO, MRU, MTL, MUR, MVR, MWK, MXN, MXV, MYR, MZM, MZN, NAD, NGN, NIO, NLG, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PTE, PYG, QAR, ROL, RON, RSD, RUB, RUR, RWF, SAR, SBD, SCR, SDD, SDG, SEK, SGD, SHP, SIT, SKK, SLE, SLL, SOS, SRD, SRG, SSP, STD, STN, SVC, SYP, SZL, THB, TJS, TMM, TMT, TND, TOP, TPE, TRL, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, USS, UYI, UYU, UZS, VEB, VED, VEF, VES, VND, VUV, WST, XAD, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XCG, XDR, XFO, XFU, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, YUM, ZAR, ZMK, ZMW, ZWD, ZWG, ZWL, ZWN, ZWR
The type of currency you wish to use.true
amountAmountNUMBERThe amount to be formatted.true
decimalDigitsDecimal DigitsINTEGERNumber of digits that will be visible after the decimal seperator.true
decimalSeparatorDecimal SeparatorSTRINGThe character you would like to use as a decimal separator.true
thousandsSeparatorThousands SeparatorSTRINGThe character you would like to use as a thousands separator.true

Example JSON Structure

{
  "label" : "Format Currency",
  "name" : "formatCurrency",
  "parameters" : {
    "currency" : "",
    "amount" : 0.0,
    "decimalDigits" : 1,
    "decimalSeparator" : "",
    "thousandsSeparator" : ""
  },
  "type" : "textHelper/v1/formatCurrency"
}

Output

Type: STRING

Get Domain From Email Address

Name: getDomainFromEmail

Extracts domain from the given email address.

Properties

NameLabelTypeDescriptionRequired
textEmailSTRINGThe email you want to extract domain from.true

Example JSON Structure

{
  "label" : "Get Domain From Email Address",
  "name" : "getDomainFromEmail",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/getDomainFromEmail"
}

Output

Type: STRING

Get Domain From URL

Name: getDomainFromUrl

Extracts domain from the given URL.

Properties

NameLabelTypeDescriptionRequired
textURLSTRINGThe URL you want to extract domain from.true

Example JSON Structure

{
  "label" : "Get Domain From URL",
  "name" : "getDomainFromUrl",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/getDomainFromUrl"
}

Output

Type: STRING

Get First Middle and Last Name

Name: getFirstMiddleLastName

From full name extract first, middle and last name.

Properties

NameLabelTypeDescriptionRequired
fullNameFull NameSTRINGThe full name.true
isFirstNameFirstIs First Name First?BOOLEAN
Options true, false
Is the first name listed first in the full name?true

Example JSON Structure

{
  "label" : "Get First Middle and Last Name",
  "name" : "getFirstMiddleLastName",
  "parameters" : {
    "fullName" : "",
    "isFirstNameFirst" : false
  },
  "type" : "textHelper/v1/getFirstMiddleLastName"
}

Output

Type: OBJECT

Properties

NameTypeDescription
firstNameSTRINGFirst name.
middleNameSTRINGMiddle name
lastNameSTRINGLast name

Output Example

{
  "firstName" : "",
  "middleName" : "",
  "lastName" : ""
}

Get Text After

Name: getTextAfter

Given a string and a pattern, this operation will return the substring between where the pattern was found depending on the match number and ending of the string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be searched for the pattern.true
patternPatternSTRINGPattern after which substring will be extracted.true
matchNumberMatch NumberINTEGERSpecifies which match to use for extracting the substring when multiple matches exist.true

Example JSON Structure

{
  "label" : "Get Text After",
  "name" : "getTextAfter",
  "parameters" : {
    "text" : "",
    "pattern" : "",
    "matchNumber" : 1
  },
  "type" : "textHelper/v1/getTextAfter"
}

Output

Type: STRING

Get Text Before

Name: getTextBefore

Given a string and a pattern, this operation will return the substring between where the pattern was found depending on the match number and beginning of the string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be searched for the pattern.true
patternPatternSTRINGPattern after which substring will be extracted.true
matchNumberMatch NumberINTEGERSpecifies which match to use for extracting the substring when multiple matches exist.true

Example JSON Structure

{
  "label" : "Get Text Before",
  "name" : "getTextBefore",
  "parameters" : {
    "text" : "",
    "pattern" : "",
    "matchNumber" : 1
  },
  "type" : "textHelper/v1/getTextBefore"
}

Output

Type: STRING

Get Text Between

Name: getTextBetween

Extract text between two patterns.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be searched for the patterns.true
patternStartStart PatternSTRINGStart pattern from where substring will be extracted.true
patternEndEnd PatternSTRINGEnd pattern to where substring will be extracted.true

Example JSON Structure

{
  "label" : "Get Text Between",
  "name" : "getTextBetween",
  "parameters" : {
    "text" : "",
    "patternStart" : "",
    "patternEnd" : ""
  },
  "type" : "textHelper/v1/getTextBetween"
}

Output

Type: STRING

Get Text Length

Name: getTextLength

Returns length of the given text.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text of which the length will be returned of.true

Example JSON Structure

{
  "label" : "Get Text Length",
  "name" : "getTextLength",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/getTextLength"
}

Output

Type: INTEGER

Hex Encode/Decode

Name: hexEncodeDecode

Hex encode/decode a specified string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be encoded or decoded.true
operationEncode or DecodeSTRING
Options ENCODE, DECODE
Select whether to encode or decode the text.true

Example JSON Structure

{
  "label" : "Hex Encode/Decode",
  "name" : "hexEncodeDecode",
  "parameters" : {
    "text" : "",
    "operation" : ""
  },
  "type" : "textHelper/v1/hexEncodeDecode"
}

Output

Type: STRING

HTML to Markdown

Name: HtmlToMarkdown

Converts HTML to markdown.

Properties

NameLabelTypeDescriptionRequired
htmlHTML ContentSTRINGHTML content to be converted to markdown.true

Example JSON Structure

{
  "label" : "HTML to Markdown",
  "name" : "HtmlToMarkdown",
  "parameters" : {
    "html" : ""
  },
  "type" : "textHelper/v1/HtmlToMarkdown"
}

Output

Type: STRING

Is Domain?

Name: isDomain

Check if a string is a valid domain.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text to be checked as a valid domain name.true

Example JSON Structure

{
  "label" : "Is Domain?",
  "name" : "isDomain",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/isDomain"
}

Output

Type: BOOLEAN

Is Email?

Name: isEmail

Check if a string is a valid email address.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text to be checked as a valid email address.true

Example JSON Structure

{
  "label" : "Is Email?",
  "name" : "isEmail",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/isEmail"
}

Output

Type: BOOLEAN

Is Numeric?

Name: isNumeric

Check if a text string is a number.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe input text that will be checked. Decimal point is a point '.'.true

Example JSON Structure

{
  "label" : "Is Numeric?",
  "name" : "isNumeric",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/isNumeric"
}

Output

Type: BOOLEAN

Is URL?

Name: isUrl

Check if a string is a valid URL.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe input text that will be checked.true
allow2slashesAllow 2 SlashesBOOLEAN
Options true, false
Allows double '/' characters in the path component.false
noFragmentNo FragmentBOOLEAN
Options true, false
Enabling this options disallows any URL fragments.false
allowAllSchemesAllow All SchemesBOOLEAN
Options true, false
Allows all validly formatted schemes to pass validation instead of supplying a set of valid schemes.false
allowLocalUrlsAllow Local URLsBOOLEAN
Options true, false
Allow local URLs, such as https://localhost/ or https://machine/ .false

Example JSON Structure

{
  "label" : "Is URL?",
  "name" : "isUrl",
  "parameters" : {
    "text" : "",
    "allow2slashes" : false,
    "noFragment" : false,
    "allowAllSchemes" : false,
    "allowLocalUrls" : false
  },
  "type" : "textHelper/v1/isUrl"
}

Output

Type: BOOLEAN

Lower Case

Name: lowerCase

Convert a string to lower case.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue

Example JSON Structure

{
  "label" : "Lower Case",
  "name" : "lowerCase",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/lowerCase"
}

Output

Type: STRING

Markdown to HTML

Name: markdownToHtml

Converts markdown to HTML.

Properties

NameLabelTypeDescriptionRequired
markdownMarkdown contentSTRINGMarkdown content to convert to HTML.true

Example JSON Structure

{
  "label" : "Markdown to HTML",
  "name" : "markdownToHtml",
  "parameters" : {
    "markdown" : ""
  },
  "type" : "textHelper/v1/markdownToHtml"
}

Output

Type: STRING

Match

Name: match

Retrieve the result of matching a string against a regular expression.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be matched to the regular expression.true
regularExpressionRegular ExpressionSTRINGRegular expression that will be used on the text.true

Example JSON Structure

{
  "label" : "Match",
  "name" : "match",
  "parameters" : {
    "text" : "",
    "regularExpression" : ""
  },
  "type" : "textHelper/v1/match"
}

Output

Type: ARRAY

Items Type: STRING

Output Example

[ "" ]

Parse Email

Name: parseEmail

Parse email into structured object. For example: "Name <name@domain.com>" into {displayName: 'Name', localPart: 'name', domain: 'domain.com'}.

Properties

NameLabelTypeDescriptionRequired
emailEmailSTRINGThe email that will be turned into structured data.true

Example JSON Structure

{
  "label" : "Parse Email",
  "name" : "parseEmail",
  "parameters" : {
    "email" : ""
  },
  "type" : "textHelper/v1/parseEmail"
}

Output

Type: OBJECT

Properties

NameTypeDescription
localPartSTRINGThe local part of the email address.
displayNameSTRINGThe display name of the email address.
domainSTRINGThe domain part of the email address.
emailSTRINGThe full email address.

Output Example

{
  "localPart" : "",
  "displayName" : "",
  "domain" : "",
  "email" : ""
}

Parse Email List

Name: parseEmailList

Parse emails into structured objects. For example: "Name <name@domain.com>" into {displayName: 'Name', localPart: 'name', domain: 'domain.com'}.

Properties

NameLabelTypeDescriptionRequired
emailsEmailsARRAY
Items [STRING($email)]
A list of emails that will be turned into structured data.true

Example JSON Structure

{
  "label" : "Parse Email List",
  "name" : "parseEmailList",
  "parameters" : {
    "emails" : [ "" ]
  },
  "type" : "textHelper/v1/parseEmailList"
}

Output

Type: ARRAY

Items Type: OBJECT

Properties

NameTypeDescription
localPartSTRINGThe local part of the email address.
displayNameSTRINGThe display name of the email address.
domainSTRINGThe domain part of the email address.
emailSTRINGThe full email address.

Output Example

[ {
  "localPart" : "",
  "displayName" : "",
  "domain" : "",
  "email" : ""
} ]

Parse URL

Name: parseUrl

Parses URL into structured data.

Properties

NameLabelTypeDescriptionRequired
urlURLSTRINGThe URL that will be turned into structured data.true

Example JSON Structure

{
  "label" : "Parse URL",
  "name" : "parseUrl",
  "parameters" : {
    "url" : ""
  },
  "type" : "textHelper/v1/parseUrl"
}

Output

Type: OBJECT

Properties

NameTypeDescription
protocolSTRINGThe protocol of the URL.
slashesSTRINGIndicates if the URL has a slash after the protocol.
authSTRINGThe authentication information of the URL.
hostSTRINGThe host part of the URL.
portSTRINGThe port part of the URL.
hostnameSTRINGThe hostname part of the URL.
hashSTRINGThe hash part of the URL.
searchSTRINGThe search part of the URL.
pathnameSTRINGThe pathname part of the URL.
pathSTRINGThe path part of the URL including the query if present.
hrefSTRINGThe full URL as a string.
queryOBJECT
Properties {STRING(key), STRING(value)}
The query parameters of the URL.

Output Example

{
  "protocol" : "",
  "slashes" : "",
  "auth" : "",
  "host" : "",
  "port" : "",
  "hostname" : "",
  "hash" : "",
  "search" : "",
  "pathname" : "",
  "path" : "",
  "href" : "",
  "query" : {
    "key" : "",
    "value" : ""
  }
}

Proper Case

Name: properCase

Capitalize the first letter of every word.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be turned into proper case.true

Example JSON Structure

{
  "label" : "Proper Case",
  "name" : "properCase",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/properCase"
}

Output

Type: STRING

Regular Expression Match Test

Name: regExMatchTest

Test if a string matches a regex.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be matched to the regular expression.true
regularExpressionRegular ExpressionSTRINGRegular expression that will be used on the text.true
ignoreCaseIgnore CaseBOOLEAN
Options true, false
If this value is set to true the regular expression will be case-insensitive.false
multilineMultilineBOOLEAN
Options true, false
If this value is set to true the regular expression will be applied to multiple lines.false
unicodeUnicodeBOOLEAN
Options true, false
If this value is set to true the regular expression will support unicode characters.false

Example JSON Structure

{
  "label" : "Regular Expression Match Test",
  "name" : "regExMatchTest",
  "parameters" : {
    "text" : "",
    "regularExpression" : "",
    "ignoreCase" : false,
    "multiline" : false,
    "unicode" : false
  },
  "type" : "textHelper/v1/regExMatchTest"
}

Output

Type: BOOLEAN

Remove Characters

Name: removeCharacters

Remove specified characters from a string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be processed to remove specified characters.true
characterCharacterSTRINGCharacter that will be removed from the text.true

Example JSON Structure

{
  "label" : "Remove Characters",
  "name" : "removeCharacters",
  "parameters" : {
    "text" : "",
    "character" : ""
  },
  "type" : "textHelper/v1/removeCharacters"
}

Output

Type: STRING

Remove Special Characters

Name: removeSpecialCharacters

Remove special characters from a string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be processed to remove special characters.true

Example JSON Structure

{
  "label" : "Remove Special Characters",
  "name" : "removeSpecialCharacters",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/removeSpecialCharacters"
}

Output

Type: STRING

Replace

Name: replace

Replace all instances of any word, character, or phrase in text with another.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue
searchValueSearch ValueSTRINGCan be plain text or a regex expression.true
replaceValueReplace ValueSTRINGLeave blank to remove the search value.false
replaceOnlyFirstReplace Only First MatchBOOLEAN
Options true, false
true

Example JSON Structure

{
  "label" : "Replace",
  "name" : "replace",
  "parameters" : {
    "text" : "",
    "searchValue" : "",
    "replaceValue" : "",
    "replaceOnlyFirst" : false
  },
  "type" : "textHelper/v1/replace"
}

Output

Type: STRING

Select First N Characters

Name: selectFirstNCharacters

Select the first N characters from a string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue
numberOfCharactersNumber of CharactersINTEGERThe number of characters to select.true

Example JSON Structure

{
  "label" : "Select First N Characters",
  "name" : "selectFirstNCharacters",
  "parameters" : {
    "text" : "",
    "numberOfCharacters" : 1
  },
  "type" : "textHelper/v1/selectFirstNCharacters"
}

Output

Type: STRING

Select Last N Characters

Name: selectLastNCharacters

Select the last N characters from a string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue
numberOfCharactersNumber of CharactersINTEGERThe number of characters to select.true

Example JSON Structure

{
  "label" : "Select Last N Characters",
  "name" : "selectLastNCharacters",
  "parameters" : {
    "text" : "",
    "numberOfCharacters" : 1
  },
  "type" : "textHelper/v1/selectLastNCharacters"
}

Output

Type: STRING

Sentence Case

Name: sentenceCase

Converts string into sentence case.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe input text that will be converted to sentence case.true

Example JSON Structure

{
  "label" : "Sentence Case",
  "name" : "sentenceCase",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/sentenceCase"
}

Output

Type: STRING

Shorten

Name: shorten

Shorten string to a max allowed length.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text that will be shortened.true
lengthLengthINTEGERMaximum allowed length of the string.true

Example JSON Structure

{
  "label" : "Shorten",
  "name" : "shorten",
  "parameters" : {
    "text" : "",
    "length" : 1
  },
  "type" : "textHelper/v1/shorten"
}

Output

Type: STRING

Split

Name: split

Split the text by delimiter.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue
delimiterDelimiterSTRINGDelimiter used for splitting the text.true

Example JSON Structure

{
  "label" : "Split",
  "name" : "split",
  "parameters" : {
    "text" : "",
    "delimiter" : ""
  },
  "type" : "textHelper/v1/split"
}

Output

Type: ARRAY

Items Type: STRING

Output Example

[ "" ]

Strip HTML Tags

Name: stripHtmlTags

Remove HTML tags from a string leaving only the tag's text content.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe input text that will be stripped from HTML tags.true

Example JSON Structure

{
  "label" : "Strip HTML Tags",
  "name" : "stripHtmlTags",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/stripHtmlTags"
}

Output

Type: STRING

Trim Whitespace

Name: trimWhitespace

Trim whitespace from the beginning and end of a string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue

Example JSON Structure

{
  "label" : "Trim Whitespace",
  "name" : "trimWhitespace",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/trimWhitespace"
}

Output

Type: STRING

Underscore

Name: underscore

Convert text to snake case, lowercasing all text, removing special characters, and replacing spaces with underscores.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe input text that will be converted to snake case.true

Example JSON Structure

{
  "label" : "Underscore",
  "name" : "underscore",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/underscore"
}

Output

Type: STRING

Upper Case

Name: upperCase

Convert a string to upper case.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGtrue

Example JSON Structure

{
  "label" : "Upper Case",
  "name" : "upperCase",
  "parameters" : {
    "text" : ""
  },
  "type" : "textHelper/v1/upperCase"
}

Output

Type: STRING

URL Encode/Decode

Name: urlEncodeDecode

URL encode/decode a specified string.

Properties

NameLabelTypeDescriptionRequired
textTextSTRINGThe text to be URL encode or decode.true
operationEncode or DecodeSTRING
Options ENCODE, DECODE
Select whether to encode or decode the text.true

Example JSON Structure

{
  "label" : "URL Encode/Decode",
  "name" : "urlEncodeDecode",
  "parameters" : {
    "text" : "",
    "operation" : ""
  },
  "type" : "textHelper/v1/urlEncodeDecode"
}

Output

Type: STRING

URL Encode/Decode Key/Value Pair

Name: urlEncodeDecodeKeyValuePair

URL encode/decode a specified set of key/value pairs.

Properties

NameLabelTypeDescriptionRequired
pairsPairsARRAY
Items [{STRING(key), STRING(value)}]
Key/Value pairs that will be encoded.true
operationEncode or DecodeSTRING
Options ENCODE, DECODE
Select whether to encode or decode the text.true

Example JSON Structure

{
  "label" : "URL Encode/Decode Key/Value Pair",
  "name" : "urlEncodeDecodeKeyValuePair",
  "parameters" : {
    "pairs" : [ {
      "key" : "",
      "value" : ""
    } ],
    "operation" : ""
  },
  "type" : "textHelper/v1/urlEncodeDecodeKeyValuePair"
}

Output

Type: STRING

How is this guide?

Last updated on

On this page

Actions
Base64 Encode/Decode
Properties
Example JSON Structure
Output
Change Type
Properties
Example JSON Structure
Output
Concatenate
Properties
Example JSON Structure
Output
Contains
Properties
Example JSON Structure
Output
Escape Characters
Properties
Example JSON Structure
Output
Extract All by Regular Expression
Properties
Example JSON Structure
Output
Output Example
Extract Content from HTML
Properties
Example JSON Structure
Output
Extract Key by Regular Expression
Properties
Example JSON Structure
Output
Output Example
Extract by Regular Expression
Properties
Example JSON Structure
Output
Extract URLs
Properties
Example JSON Structure
Output
Output Example
Format Currency
Properties
Example JSON Structure
Output
Get Domain From Email Address
Properties
Example JSON Structure
Output
Get Domain From URL
Properties
Example JSON Structure
Output
Get First Middle and Last Name
Properties
Example JSON Structure
Output
Properties
Output Example
Get Text After
Properties
Example JSON Structure
Output
Get Text Before
Properties
Example JSON Structure
Output
Get Text Between
Properties
Example JSON Structure
Output
Get Text Length
Properties
Example JSON Structure
Output
Hex Encode/Decode
Properties
Example JSON Structure
Output
HTML to Markdown
Properties
Example JSON Structure
Output
Is Domain?
Properties
Example JSON Structure
Output
Is Email?
Properties
Example JSON Structure
Output
Is Numeric?
Properties
Example JSON Structure
Output
Is URL?
Properties
Example JSON Structure
Output
Lower Case
Properties
Example JSON Structure
Output
Markdown to HTML
Properties
Example JSON Structure
Output
Match
Properties
Example JSON Structure
Output
Output Example
Parse Email
Properties
Example JSON Structure
Output
Properties
Output Example
Parse Email List
Properties
Example JSON Structure
Output
Properties
Output Example
Parse URL
Properties
Example JSON Structure
Output
Properties
Output Example
Proper Case
Properties
Example JSON Structure
Output
Regular Expression Match Test
Properties
Example JSON Structure
Output
Remove Characters
Properties
Example JSON Structure
Output
Remove Special Characters
Properties
Example JSON Structure
Output
Replace
Properties
Example JSON Structure
Output
Select First N Characters
Properties
Example JSON Structure
Output
Select Last N Characters
Properties
Example JSON Structure
Output
Sentence Case
Properties
Example JSON Structure
Output
Shorten
Properties
Example JSON Structure
Output
Split
Properties
Example JSON Structure
Output
Output Example
Strip HTML Tags
Properties
Example JSON Structure
Output
Trim Whitespace
Properties
Example JSON Structure
Output
Underscore
Properties
Example JSON Structure
Output
Upper Case
Properties
Example JSON Structure
Output
URL Encode/Decode
Properties
Example JSON Structure
Output
URL Encode/Decode Key/Value Pair
Properties
Example JSON Structure
Output