Interested in improving this site? Please check the To Do page.

Back to Regular Expression (re) Verbs

re.join

Joins all items in strList into a delimited string object, using s as the delimiter between list items.

Syntax

re.join (s, strList)

Params

  • s is a string param containing the delimiter to be used.
  • strList is a list param to be concatenated.

Returns

String of concatenated list items.

Examples

local (myList = {"a", "b", "c"})
re.join ("|", myList)

“a|b|c”

Notes

This verb does the opposite of “re.split”.

See Also


Personal Tools