Split String to Right [SPLITRIGHT]

Splits a string into parts at a given delimiter.

Returns the specified part and all parts to its right.

Syntax

SPLITRIGHT (“Text”, “Delimiter”, PartIndex)

Note: The required separator (comma or semi-colon) automatically corresponds to your computer’s location settings.

Data Types of the Arguments

Text and Delimiter: String

Part Index: Integer

Data Type of the Result

String

Example

Given an ARCHICAD Element ID, such as TREAD-018:

Get the numerical part of the ID.

The delimiter, which separates the Element ID into parts, is a dash.

The part number (index) is 2 (the second part).

Expression

SPLITRIGHT (Element ID, “-”, 2)

Result

018 (for an Element ID of “TREAD-018”)

  • Was this Helpful ?
  • YesNo
Relevant topics
String from Right [RIGHT]
Returns a specified number of characters (including spaces) from the end of a text string. Syntax RIGHT (“Text”, ...
Split String [SPLIT]
Splits a string into parts at a given delimiter and returns the specified part. Syntax SPLIT(“Text”, “Delimiter”, ...
Split String to Left [SPLITLEFT]
Splits a string into parts at a given delimiter. Returns the specified part and all parts to its left. Syntax SPLITLEFT (“Text”, ...