Free cookie consent management tool by TermsFeed extract() Function
extract() Function

Function

extract( text, startDelimiter, endDelimiter )

Returns the value (or values, if the text contains multiple delimited values) between the delimiters from the given text.

Parameters

Keyword Type Description

text

Text

The text from which to extract the delimited string.

startDelimiter

Text

String for the start delimiter.

endDelimiter

Text

String for the end delimiter.

Returns

Text Array

Examples

extract("start function /\*extract this\*/ end function","/\*","\*/") returns extract this

Open in Github Built: Fri, Nov 10, 2023 (03:42:48 PM)

extract() Function

FEEDBACK