Last active
May 14, 2022 16:29
-
-
Save kingofnull/ee7bce44377b960be405fc696adb27b0 to your computer and use it in GitHub Desktop.
C# Regex Capturing Group
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
var m = Regex.Match(data, @"[*D](?<num>\d+)[C#]"); | |
if (m.Success) | |
{ | |
var num = m.Groups["num"].Value; | |
Log($"New Phone Detected: {num}"); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment