Table Of Contents

Search/Split String (G Dataflow)

Version:
Last Modified: August 28, 2017

Divides a single string into two substrings.

This node searches a string for the string or character in search string/char and splits the string when it finds a match. This node returns two strings: the substring before the match, and the match plus the rest of the original string.

connector_pane_image
datatype_icon

string

The input string the node searches or splits.

datatype_icon

search string/char

The string or character to search for in the input string. If you do not wire this input or it contains an empty string, the function splits the string at the specified offset.

Default: -

datatype_icon

offset

Number of characters into the string at which the node begins searching. The offset of the first character in the string is 0. If the offset is unwired or less than 0, the node interprets the offset as 0.

datatype_icon

substring before match

Portion of the string before the search string or before the offset if the search string is unwired. If the node does not find the search string, this output returns the entire string.

datatype_icon

match and rest of string

The search string and all subsequent characters in the string. If the node does not find the search string, this output returns an empty string.

datatype_icon

offset of match

The position of the search string/char in the string. If there is no match, this output returns -1.

Where This Node Can Run:

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics