StringExtensions.GetStringBetween Method

String Extensions

StringExtensionsGetStringBetween Method
The GetStringBetween() method takes input string and returns string between parsed start and end strings.

Namespace: StringConvertions
Assembly: StringConvertions (in StringConvertions.exe) Version: (
public static string GetStringBetween(
	this string input,
	string startString,
	string endString,
	int startFrom = 0
Public Shared Function GetStringBetween ( 
	input As String,
	startString As String,
	endString As String,
	Optional startFrom As Integer = 0
) As String
static String^ GetStringBetween(
	String^ input, 
	String^ startString, 
	String^ endString, 
	int startFrom = 0
static member GetStringBetween : 
        input : string * 
        startString : string * 
        endString : string * 
        ?startFrom : int 
(* Defaults:
        let _startFrom = defaultArg startFrom 0
-> string 


Type: SystemString
Takes String parameter.
Type: SystemString
Start string takes String parameter.
Type: SystemString
End string takes String parameter.
startFrom (Optional)
Type: SystemInt32
Takes Integer parameter for starting substring position.

Return Value

Type: String
Returns substring from input string between parsed start and end strings.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also