Skip to content
SoulFire LogoSoulFire

String

Inputs, outputs, and defaults of the 15 built-in nodes in the String category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

Concat

string.concat

Concatenates two strings together

Also called: string, concatenate, join, append, combine.

Inputs

PortTypeRequired / defaultDescription
a (A)string""First string
b (B)string""Second string

Outputs

PortTypeDescription
result (Result)stringConcatenated string

Implementation

Ends With

string.ends_with

Checks if a string ends with a suffix

Also called: string, ends, suffix, end.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string to check
suffix (Suffix)string""Suffix to check for
ignoreCase (Ignore Case)booleanfalseWhether to ignore case when checking

Outputs

PortTypeDescription
result (Result)booleanTrue if text ends with suffix

Implementation

Format

string.format

Formats a template string by replacing placeholders such as 0 and 1 with arguments

Also called: string, template, placeholder, interpolate.

Inputs

PortTypeRequired / defaultDescription
template (Template)string""Template string with 0, 1, etc. placeholders
args (Arguments)list<any>RequiredList of values to substitute into placeholders

Outputs

PortTypeDescription
result (Result)stringFormatted string

Implementation

Index Of

string.index_of

Finds the index of the first occurrence of a substring

Also called: string, index, find, search, position, location.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string to search in
search (Search)string""Substring to search for
ignoreCase (Ignore Case)booleanfalseWhether to ignore case when searching

Outputs

PortTypeDescription
index (Index)numberIndex of first occurrence (-1 if not found)

Implementation

Regex Match

string.regex_match

Tests if a string matches a regex pattern and extracts capture groups

Also called: regex, match, pattern, test, find, capture, group.

Inputs

PortTypeRequired / defaultDescription
input (Input)stringRequiredString to test
pattern (Pattern)stringRequiredRegex pattern
flags (Flags)string""Regex flags (i=case-insensitive, m=multiline, s=dotall)

Outputs

PortTypeDescription
matches (Matches)booleanWhether the pattern matched
fullMatch (Full Match)stringThe entire matched string
groups (Groups)list<string>List of captured groups
allMatches (All Matches)list<string>All matches found
error (Error)stringError message if pattern is invalid

Implementation

Regex Replace

string.regex_replace

Replaces matches of a regex pattern with a replacement string

Also called: regex, replace, substitute, pattern, sed.

Inputs

PortTypeRequired / defaultDescription
input (Input)stringRequiredString to modify
pattern (Pattern)stringRequiredRegex pattern to match
replacement (Replacement)stringRequiredReplacement string (supports $1, $2 for groups)
replaceAll (Replace All)booleantrueReplace all matches or just first
flags (Flags)string""Regex flags

Outputs

PortTypeDescription
result (Result)stringString with replacements made
count (Count)numberNumber of replacements made
error (Error)stringError message if pattern is invalid

Implementation

Replace

string.replace

Replaces occurrences of a substring with another string

Also called: string, substitute, swap.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string
search (Search)string""Substring to search for
replacement (Replacement)string""Replacement string
replaceAll (Replace All)booleantrueReplace all occurrences or just the first

Outputs

PortTypeDescription
result (Result)stringString with replacements made

Implementation

Split

string.split

Splits a string into a list by a delimiter

Also called: string, divide, separate, tokenize.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string to split
delimiter (Delimiter)string" "Delimiter to split by

Outputs

PortTypeDescription
result (Result)list<string>List of split strings

Implementation

Starts With

string.starts_with

Checks if a string starts with a prefix

Also called: string, starts, prefix, begin.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string to check
prefix (Prefix)string""Prefix to check for
ignoreCase (Ignore Case)booleanfalseWhether to ignore case when checking

Outputs

PortTypeDescription
result (Result)booleanTrue if text starts with prefix

Implementation

String Contains

string.contains

Checks if a string contains a substring

Also called: string, contains, includes, has, search, find.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string to search in
search (Search)string""Substring to search for
ignoreCase (Ignore Case)booleanfalseWhether to ignore case when searching

Outputs

PortTypeDescription
result (Result)booleanTrue if text contains search string

Implementation

String Length

string.length

Returns the length of a string

Also called: string, length, count, size.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string

Outputs

PortTypeDescription
length (Length)numberLength of the string

Implementation

Substring

string.substring

Extracts a substring from start index to end index

Also called: string, slice, extract, sub.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string
start (Start)number0Start index (inclusive)
end (End)number-1End index (exclusive, -1 for end of string)

Outputs

PortTypeDescription
result (Result)stringExtracted substring

Implementation

To Lower Case

string.to_lower_case

Converts a string to lowercase

Also called: string, lowercase, lower, case.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string

Outputs

PortTypeDescription
result (Result)stringLowercase string

Implementation

To Upper Case

string.to_upper_case

Converts a string to uppercase

Also called: string, uppercase, upper, capital, case.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string

Outputs

PortTypeDescription
result (Result)stringUppercase string

Implementation

Trim

string.trim

Removes whitespace from both ends of a string

Also called: string, whitespace, strip.

Inputs

PortTypeRequired / defaultDescription
text (Text)string""Input string

Outputs

PortTypeDescription
result (Result)stringTrimmed string

Implementation

How is this page?

Last updated on