githubEdit

ListChangeDelims

Converts the delimiters of a list to the new delimiter.

Method Signature

ListChangeDelims(list=[string], newDelimiter=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean])

Arguments

Argument
Type
Required
Description
Default

list

string

true

string list to convert the delimiters.

newDelimiter

string

true

string the new list delimiter

delimiter

string

false

string the old list delimiter

,

includeEmptyFields

boolean

false

boolean whether to include empty fields in the returned result

false

multiCharacterDelimiter

boolean

false

false

Examples

Simple Example

Changes the delimiters in the list

Run Examplearrow-up-right

listChangeDelims( "foo,bar,lorem,ipsum", "|" );

Result: foo|bar|lorem|ipsum

Example with Custom Delimiter

Changes the delimiters in the list using a custom delimiter

Run Examplearrow-up-right

Result: foo,barlorem,ipsumme~something

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?