Function that extracts a string from within another string based on two delimiters. The function operates case insensitively and the string returned by default returns the value between the first set of matched delimiters.

Options allow returning the delimiters as part of the string, as well as ignoring a non-match for the end delimiter in which case the string returns the remainder of the string.

o.String.extract(startDelim, endDelim, allowMissingEndDelim, returnDelims)

Return Value

Extracted string or empty string ("")


First delimiter to look for

End delimiter to look for

If true returns to the end of the string if the end delimiter is not found

If true returns the delimiters rather than just the value between the delimiters.

See also:

Class String

© West Wind Technologies, 1996-2022 • Updated: 09/30/14
Comment or report problem with topic