Skip to main content

Substring Info

Captures information on a portion of the string (substring), including its position and occurrence.

Input​

NameData TypeDescription
Source StringStringThe string to get substring information from.
SubstringStringThe referenced substring.

Output​

NameData TypeDescription
If ContainsBooleanThe number of characters in a string.
If Starts WithBooleanCharacters in uppercase.
If Ends WithBooleanCharacters in lowercase.
First IndexNumberThe index of the first occurrence of the substring.
Last IndexNumberThe index of the last occurrence of the substring.
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies