Function split

  • Splits the string using the separator. If the string contains well formed parenthesized expressions then those expression will not be split even if they contain separators.

    E.g. if we call split("a,b,c(d,e)", ",", "(", ")") we will get ["a", "b", "c(d,e)"].

    Parameters

    • string: string

      String to split

    • separator: string

      Separator to use to split the string

    • openBrace: string

      String to consider to be an "opening brace"

    • closeBrace: string

      String to consider to be a "closing brace"

    Returns string[]

    Return the parts into which s has been split.

Generated using TypeDoc