StringUtils.ExtractString

Extracts a string from between a pair of delimiters. Only the first instance is found.

public static string ExtractString(string source,
	string beginDelim,
	string endDelim,
	bool caseSensitive,
	bool allowMissingEndDelimiter,
	bool returnDelimiters)

Return Value

Extracted string or string.Empty on no match

Parameters

source
Input String to work on

beginDelim
Beginning delimiter

endDelim
ending delimiter

caseSensitive
Determines whether the search for delimiters is case sensitive

allowMissingEndDelimiter

returnDelimiters


See also:

Class StringUtils

© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic