StringsSubstringWith Method

Extracts a string by removing the indicated starting and ending substring.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string SubstringWith(
	string text,
	string startsWith,
	string endsWith,
	bool bothRequired = false
)

Parameters

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.

Return Value

String
String with the value removing the indicated starting and ending substring.

See Also