Table Of Contents

Search/Split String (G Dataflow)

Version:
    Last Modified: January 9, 2017

    Divides a single string into two substrings.

    You can divide the string at a certain character or substring. Search/Split String searches string for the string or character in search string/char. The function splits the string and returns the resulting two strings in substring before match and match + rest of string.

    connector_pane_image
    datatype_icon

    string

    Is the input string the function searches or splits.

    datatype_icon

    search string/char

    Is the string or character to search for in string. The default value is -. If you do not wire this input or it contains an empty string, the function splits string at offset. You must wire either search char or offset.

    datatype_icon

    offset

    Number of characters into string at which the function starts searching for a match. offset must be numeric. The offset of the first character in string is 0. If offset is unwired or less than 0, the function takes offset as 0.

    datatype_icon

    substring before match

    Portion of string before search string/char or before offset if search string/char is unwired. If this function does not find the search string, substring before match returns the entire original string.

    datatype_icon

    match and rest of string

    Consists of search string/char and all subsequent characters in string. If this function does not find the search string, match and rest of string an empty string.

    datatype_icon

    offset of match

    Is the position of search string/char in string. If this function does not find the search string, offset of match -1.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics