String.extract

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 ("")

Parameters

startDelim
First delimiter to look for

endDelim
End delimiter to look for

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

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


See also:

Class String

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