Skip to content

SelectCaseMatches

jdubs edited this page Oct 21, 2016 · 1 revision

Overview

Utilizing a regular expression, a formatted string is parsed and returned as an array.

Source Code

internal static string[] SelectCaseMatches(object SourceArray)
{
	Regex reg;
	string pattern = "{(?<tag>.*?)}"; // format = {key=pair}

	reg = new Regex(pattern, RegexOptions.Singleline);
	return reg.Split((string)SourceArray);
}

Clone this wiki locally