For the complete documentation index, see llms.txt. This page is also available as Markdown.

RegexSplit (Text Filtering)

This is used for splitting the given string into multiple substrings using the chosen parameter and adding it to a string array variable. For each element in that array it further splits it into substrings, between two indexes. As the final step, it adds every result to a List<string>.

This script will require adding using System.Text.RegularExpressions; to the namespaces section.

string[] text = Regex.Split(stringCanvas,"String");
foreach(string substring in text) 
{
    if (text.Contains("endString"))
    {
        string textSubstring =substring.Substring(0, element.IndexOf("endString"));
        List<string>.Add(element);
    }
}

Last updated

Was this helpful?