Created
January 5, 2022 11:50
-
-
Save jonathanstowe/526ff53ebceb90a822696e7bfe3d79e8 to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Text.RegularExpressions; | |
public class Example | |
{ | |
public static void Main() | |
{ | |
string pattern = "^\\d+$"; | |
string numbers = "௫๓௫๓"; | |
foreach (Match match in Regex.Matches(numbers, pattern)) | |
Console.WriteLine("{0}", match.Value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment