Skip to content

Instantly share code, notes, and snippets.

@luojunyuan
Created October 12, 2020 15:18
Show Gist options
  • Save luojunyuan/76efb1cea0328f40454c08a4e72f1473 to your computer and use it in GitHub Desktop.
Save luojunyuan/76efb1cea0328f40454c08a4e72f1473 to your computer and use it in GitHub Desktop.
CSharp AABB deduplicate
case "AABB":
patten = $@"([^\\]){{{gameInfo.RepeatTime}}}";
regex = new Regex(patten);
matches = regex.Matches(hp.Text);
if (matches.Count != 0)
{
string tmp = "";
foreach (Match match in matches)
{
tmp += match.Groups[1];
}
hp.Text = tmp;
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment