StringExtensions.GetStringBetween Method
From Telerik ILS Common String Extenstion Methods
Telerik.ILS.Common.StringExtenstionMethods
| StringExtensionsGetStringBetween Method |
Extracts the first occurance of a string between two other strings. Returns empty string if either the start or the end strings cannot be found. Start and end string values are not included in the result.
Namespace: Telerik.ILS.Common
Assembly: StringExtensions (in StringExtensions.dll) Version: 1.0.0.0 (1.0.0.0)
public static string GetStringBetween( this string input, string startString, string endString, int startFrom = 0 )
<ExtensionAttribute> Public Shared Function GetStringBetween ( input As String, startString As String, endString As String, Optional startFrom As Integer = 0 ) As String
public: [ExtensionAttribute] static String^ GetStringBetween( String^ input, String^ startString, String^ endString, int startFrom = 0 )
[<ExtensionAttribute>] static member GetStringBetween : input : string * startString : string * endString : string * ?startFrom : int (* Defaults: let _startFrom = defaultArg startFrom 0 *) -> string
Parameters
- input
- Type: SystemString
- startString
- Type: SystemString
The string value that indicates the starting place of the extraction. - endString
- Type: SystemString
The string value that indicates the end of the extraction. - startFrom (Optional)
- Type: SystemInt32
Return Value
Type: StringSystem.String