PEd_StringSplitOnFirst

function

PEd_StringSplitOnFirst(_string, _delimiter)

Description

Splits the string in two at the first occurence of the delimiter.

Arguments

Name Type Description
_string String The string to split.
_delimiter String The delimiter.

Returns

array An array containing [firstHalf, secondHalf]. If the delimiter is not found in the string, then firstHalf equals empty string and secondHalf is the original string.


Copyright © 2022, BlueBurn. Built on September 12, 2022 using GMDoc.