StringsSubstringWith Method
Extracts a string by removing the indicated starting and ending substring.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string SubstringWith(
string text,
string startsWith,
string endsWith,
bool bothRequired = false
)
Public Shared Function SubstringWith (
text As String,
startsWith As String,
endsWith As String,
Optional bothRequired As Boolean = false
) As String
- text String
- String to remove substrings from.
- startsWith String
- Initial substring to remove.
- endsWith String
- Final substring to remove.
- bothRequired Boolean (Optional)
- Indicates whether both substrings (starting and ending) must exist to be able to remove them.
StringString with the value removing the indicated starting and ending substring.