Created
October 12, 2020 15:18
-
-
Save luojunyuan/76efb1cea0328f40454c08a4e72f1473 to your computer and use it in GitHub Desktop.
CSharp AABB deduplicate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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