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-2024 • Updated: 06/29/24
Comment or report problem with topic