Click or drag to resize

StringUtilsExtractString Method

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

Namespace:  Koden.Utils
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public static string ExtractString(
	string source,
	string beginDelim,
	string endDelim,
	bool caseSensitive = false,
	bool allowMissingEndDelimiter = false,
	bool returnDelimiters = false
)

Parameters

source
Type: SystemString
Input String to work on
beginDelim
Type: SystemString
The begin delimiter.
endDelim
Type: SystemString
ending delimiter
caseSensitive (Optional)
Type: SystemBoolean
if set to true [case sensitive].
allowMissingEndDelimiter (Optional)
Type: SystemBoolean
if set to true [allow missing end delimiter].
returnDelimiters (Optional)
Type: SystemBoolean
if set to true [return delimiters].

Return Value

Type: String
Extracted string or ""
See Also