///
/// Uses regular expressions to split a string into parts.
///
/// The input string.
/// The regular expression pattern.
/// The splitted string array
public static string[] Split(this string value, string regexPattern)
{
return value.Split(regexPattern, RegexOptions.None);
}
///
/// Uses regular expressions to split a string into parts.
///
/// The input string.
/// The regular expression pattern.
/// The regular expression options.
/// The splitted string array
public static string[] Split(this string value, string regexPattern, RegexOptions options)
{
return Regex.Split(value, regexPattern, options);
}
|