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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.