x Hint: Register, if you want to hide ads.
x Did you like it? Well, then please consider making a donation :)

Regex - \d is less efficient than [0-9] - get ALL Unicode digits

\d checks all Unicode digits, while [0-9] is limited to these 10 characters. For example, Persian digits, ?????????, are an example of Unicode digits which are matched with \d, but not [0-9]. [0-9] isn't equivalent to \d. [0-9] matches only 0123456789 characters, while \d matches [0-9] and other digit characters, for example Eastern Arabic numerals ٠١٢٣٤٥٦٧٨٩

Tags: #digits, #get all, #parsing, #persian digits, #romanian digits, #symbols, #unicode. Views: 1681. stackoverflow, 7/12/2015
Link 1: http://www.systemtextregularexpressions.com/m7/regex-d-is-less-efficient-than-09-get-all-unicode-digits
Link 2: http://www.systemtextregularexpressions.com/m7 (short)

Length: 0b, Line: 1, Cursor: 0

RegexOptions

IsMatch=true


#ValueIndexLengthGroupsCaptures
0001Skip Navigation Links.Skip Navigation Links.
1111Skip Navigation Links.Skip Navigation Links.
2221Skip Navigation Links.Skip Navigation Links.
3331Skip Navigation Links.Skip Navigation Links.
4441Skip Navigation Links.Skip Navigation Links.
5551Skip Navigation Links.Skip Navigation Links.
6661Skip Navigation Links.Skip Navigation Links.
7771Skip Navigation Links.Skip Navigation Links.
8881Skip Navigation Links.Skip Navigation Links.
9991Skip Navigation Links.Skip Navigation Links.
10٠101Skip Navigation Links.Skip Navigation Links.
11١111Skip Navigation Links.Skip Navigation Links.
12٢121Skip Navigation Links.Skip Navigation Links.
13٣131Skip Navigation Links.Skip Navigation Links.
14٤141Skip Navigation Links.Skip Navigation Links.
15٥151Skip Navigation Links.Skip Navigation Links.
16٦161Skip Navigation Links.Skip Navigation Links.
17٧171Skip Navigation Links.Skip Navigation Links.
18٨181Skip Navigation Links.Skip Navigation Links.
19٩191Skip Navigation Links.Skip Navigation Links.
20۰201Skip Navigation Links.Skip Navigation Links.
21۱211Skip Navigation Links.Skip Navigation Links.
22۲221Skip Navigation Links.Skip Navigation Links.
23۳231Skip Navigation Links.Skip Navigation Links.
24۴241Skip Navigation Links.Skip Navigation Links.
25۵251Skip Navigation Links.Skip Navigation Links.
26۶261Skip Navigation Links.Skip Navigation Links.
27۷271Skip Navigation Links.Skip Navigation Links.
28۸281Skip Navigation Links.Skip Navigation Links.
29۹291Skip Navigation Links.Skip Navigation Links.
30߀301Skip Navigation Links.Skip Navigation Links.
31߁311Skip Navigation Links.Skip Navigation Links.
32߂321Skip Navigation Links.Skip Navigation Links.
33߃331Skip Navigation Links.Skip Navigation Links.
34߄341Skip Navigation Links.Skip Navigation Links.
35߅351Skip Navigation Links.Skip Navigation Links.
36߆361Skip Navigation Links.Skip Navigation Links.
37߇371Skip Navigation Links.Skip Navigation Links.
38߈381Skip Navigation Links.Skip Navigation Links.
39߉391Skip Navigation Links.Skip Navigation Links.
40401Skip Navigation Links.Skip Navigation Links.
41411Skip Navigation Links.Skip Navigation Links.
42421Skip Navigation Links.Skip Navigation Links.
43431Skip Navigation Links.Skip Navigation Links.
44441Skip Navigation Links.Skip Navigation Links.
45451Skip Navigation Links.Skip Navigation Links.
46461Skip Navigation Links.Skip Navigation Links.
47471Skip Navigation Links.Skip Navigation Links.
48481Skip Navigation Links.Skip Navigation Links.
49491Skip Navigation Links.Skip Navigation Links.
50501Skip Navigation Links.Skip Navigation Links.
51511Skip Navigation Links.Skip Navigation Links.
52521Skip Navigation Links.Skip Navigation Links.
53531Skip Navigation Links.Skip Navigation Links.
54541Skip Navigation Links.Skip Navigation Links.
55551Skip Navigation Links.Skip Navigation Links.
56561Skip Navigation Links.Skip Navigation Links.
57571Skip Navigation Links.Skip Navigation Links.
58581Skip Navigation Links.Skip Navigation Links.
59591Skip Navigation Links.Skip Navigation Links.
60601Skip Navigation Links.Skip Navigation Links.
61611Skip Navigation Links.Skip Navigation Links.
62621Skip Navigation Links.Skip Navigation Links.
63631Skip Navigation Links.Skip Navigation Links.
64641Skip Navigation Links.Skip Navigation Links.
65651Skip Navigation Links.Skip Navigation Links.
66661Skip Navigation Links.Skip Navigation Links.
67671Skip Navigation Links.Skip Navigation Links.
68681Skip Navigation Links.Skip Navigation Links.
69691Skip Navigation Links.Skip Navigation Links.
70701Skip Navigation Links.Skip Navigation Links.
71711Skip Navigation Links.Skip Navigation Links.
72721Skip Navigation Links.Skip Navigation Links.
73731Skip Navigation Links.Skip Navigation Links.
74741Skip Navigation Links.Skip Navigation Links.
75751Skip Navigation Links.Skip Navigation Links.
76761Skip Navigation Links.Skip Navigation Links.
77771Skip Navigation Links.Skip Navigation Links.
78781Skip Navigation Links.Skip Navigation Links.
79791Skip Navigation Links.Skip Navigation Links.
80801Skip Navigation Links.Skip Navigation Links.
81811Skip Navigation Links.Skip Navigation Links.
82821Skip Navigation Links.Skip Navigation Links.
83831Skip Navigation Links.Skip Navigation Links.
84841Skip Navigation Links.Skip Navigation Links.
85851Skip Navigation Links.Skip Navigation Links.
86861Skip Navigation Links.Skip Navigation Links.
87871Skip Navigation Links.Skip Navigation Links.
88881Skip Navigation Links.Skip Navigation Links.
89891Skip Navigation Links.Skip Navigation Links.
90901Skip Navigation Links.Skip Navigation Links.
91911Skip Navigation Links.Skip Navigation Links.
92921Skip Navigation Links.Skip Navigation Links.
93931Skip Navigation Links.Skip Navigation Links.
94941Skip Navigation Links.Skip Navigation Links.
95951Skip Navigation Links.Skip Navigation Links.
96961Skip Navigation Links.Skip Navigation Links.
97971Skip Navigation Links.Skip Navigation Links.
98981Skip Navigation Links.Skip Navigation Links.
99991Skip Navigation Links.Skip Navigation Links.
1001001Skip Navigation Links.Skip Navigation Links.
1011011Skip Navigation Links.Skip Navigation Links.
1021021Skip Navigation Links.Skip Navigation Links.
1031031Skip Navigation Links.Skip Navigation Links.
1041041Skip Navigation Links.Skip Navigation Links.
1051051Skip Navigation Links.Skip Navigation Links.
1061061Skip Navigation Links.Skip Navigation Links.
1071071Skip Navigation Links.Skip Navigation Links.
1081081Skip Navigation Links.Skip Navigation Links.
1091091Skip Navigation Links.Skip Navigation Links.
1101101Skip Navigation Links.Skip Navigation Links.
1111111Skip Navigation Links.Skip Navigation Links.
1121121Skip Navigation Links.Skip Navigation Links.
1131131Skip Navigation Links.Skip Navigation Links.
1141141Skip Navigation Links.Skip Navigation Links.
1151151Skip Navigation Links.Skip Navigation Links.
1161161Skip Navigation Links.Skip Navigation Links.
1171171Skip Navigation Links.Skip Navigation Links.
1181181Skip Navigation Links.Skip Navigation Links.
1191191Skip Navigation Links.Skip Navigation Links.
1201201Skip Navigation Links.Skip Navigation Links.
1211211Skip Navigation Links.Skip Navigation Links.
1221221Skip Navigation Links.Skip Navigation Links.
1231231Skip Navigation Links.Skip Navigation Links.
1241241Skip Navigation Links.Skip Navigation Links.
1251251Skip Navigation Links.Skip Navigation Links.
1261261Skip Navigation Links.Skip Navigation Links.
1271271Skip Navigation Links.Skip Navigation Links.
1281281Skip Navigation Links.Skip Navigation Links.
1291291Skip Navigation Links.Skip Navigation Links.
1301301Skip Navigation Links.Skip Navigation Links.
1311311Skip Navigation Links.Skip Navigation Links.
1321321Skip Navigation Links.Skip Navigation Links.
1331331Skip Navigation Links.Skip Navigation Links.
1341341Skip Navigation Links.Skip Navigation Links.
1351351Skip Navigation Links.Skip Navigation Links.
1361361Skip Navigation Links.Skip Navigation Links.
1371371Skip Navigation Links.Skip Navigation Links.
1381381Skip Navigation Links.Skip Navigation Links.
1391391Skip Navigation Links.Skip Navigation Links.
1401401Skip Navigation Links.Skip Navigation Links.
1411411Skip Navigation Links.Skip Navigation Links.
1421421Skip Navigation Links.Skip Navigation Links.
1431431Skip Navigation Links.Skip Navigation Links.
1441441Skip Navigation Links.Skip Navigation Links.
1451451Skip Navigation Links.Skip Navigation Links.
1461461Skip Navigation Links.Skip Navigation Links.
1471471Skip Navigation Links.Skip Navigation Links.
1481481Skip Navigation Links.Skip Navigation Links.
1491491Skip Navigation Links.Skip Navigation Links.
1501501Skip Navigation Links.Skip Navigation Links.
1511511Skip Navigation Links.Skip Navigation Links.
1521521Skip Navigation Links.Skip Navigation Links.
1531531Skip Navigation Links.Skip Navigation Links.
1541541Skip Navigation Links.Skip Navigation Links.
1551551Skip Navigation Links.Skip Navigation Links.
1561561Skip Navigation Links.Skip Navigation Links.
1571571Skip Navigation Links.Skip Navigation Links.
1581581Skip Navigation Links.Skip Navigation Links.
1591591Skip Navigation Links.Skip Navigation Links.
1601601Skip Navigation Links.Skip Navigation Links.
1611611Skip Navigation Links.Skip Navigation Links.
1621621Skip Navigation Links.Skip Navigation Links.
1631631Skip Navigation Links.Skip Navigation Links.
1641641Skip Navigation Links.Skip Navigation Links.
1651651Skip Navigation Links.Skip Navigation Links.
1661661Skip Navigation Links.Skip Navigation Links.
1671671Skip Navigation Links.Skip Navigation Links.
1681681Skip Navigation Links.Skip Navigation Links.
1691691Skip Navigation Links.Skip Navigation Links.
1701701Skip Navigation Links.Skip Navigation Links.
1711711Skip Navigation Links.Skip Navigation Links.
1721721Skip Navigation Links.Skip Navigation Links.
1731731Skip Navigation Links.Skip Navigation Links.
1741741Skip Navigation Links.Skip Navigation Links.
1751751Skip Navigation Links.Skip Navigation Links.
1761761Skip Navigation Links.Skip Navigation Links.
1771771Skip Navigation Links.Skip Navigation Links.
1781781Skip Navigation Links.Skip Navigation Links.
1791791Skip Navigation Links.Skip Navigation Links.
1801801Skip Navigation Links.Skip Navigation Links.
1811811Skip Navigation Links.Skip Navigation Links.
1821821Skip Navigation Links.Skip Navigation Links.
1831831Skip Navigation Links.Skip Navigation Links.
1841841Skip Navigation Links.Skip Navigation Links.
1851851Skip Navigation Links.Skip Navigation Links.
1861861Skip Navigation Links.Skip Navigation Links.
1871871Skip Navigation Links.Skip Navigation Links.
1881881Skip Navigation Links.Skip Navigation Links.
1891891Skip Navigation Links.Skip Navigation Links.
1901901Skip Navigation Links.Skip Navigation Links.
1911911Skip Navigation Links.Skip Navigation Links.
1921921Skip Navigation Links.Skip Navigation Links.
1931931Skip Navigation Links.Skip Navigation Links.
1941941Skip Navigation Links.Skip Navigation Links.
1951951Skip Navigation Links.Skip Navigation Links.
1961961Skip Navigation Links.Skip Navigation Links.
1971971Skip Navigation Links.Skip Navigation Links.
1981981Skip Navigation Links.Skip Navigation Links.
1991991Skip Navigation Links.Skip Navigation Links.
2002001Skip Navigation Links.Skip Navigation Links.
2012011Skip Navigation Links.Skip Navigation Links.
2022021Skip Navigation Links.Skip Navigation Links.
2032031Skip Navigation Links.Skip Navigation Links.
2042041Skip Navigation Links.Skip Navigation Links.
2052051Skip Navigation Links.Skip Navigation Links.
2062061Skip Navigation Links.Skip Navigation Links.
2072071Skip Navigation Links.Skip Navigation Links.
2082081Skip Navigation Links.Skip Navigation Links.
2092091Skip Navigation Links.Skip Navigation Links.
2102101Skip Navigation Links.Skip Navigation Links.
2112111Skip Navigation Links.Skip Navigation Links.
2122121Skip Navigation Links.Skip Navigation Links.
2132131Skip Navigation Links.Skip Navigation Links.
2142141Skip Navigation Links.Skip Navigation Links.
2152151Skip Navigation Links.Skip Navigation Links.
2162161Skip Navigation Links.Skip Navigation Links.
2172171Skip Navigation Links.Skip Navigation Links.
2182181Skip Navigation Links.Skip Navigation Links.
2192191Skip Navigation Links.Skip Navigation Links.
2202201Skip Navigation Links.Skip Navigation Links.
2212211Skip Navigation Links.Skip Navigation Links.
2222221Skip Navigation Links.Skip Navigation Links.
2232231Skip Navigation Links.Skip Navigation Links.
2242241Skip Navigation Links.Skip Navigation Links.
2252251Skip Navigation Links.Skip Navigation Links.
2262261Skip Navigation Links.Skip Navigation Links.
2272271Skip Navigation Links.Skip Navigation Links.
2282281Skip Navigation Links.Skip Navigation Links.
2292291Skip Navigation Links.Skip Navigation Links.
2302301Skip Navigation Links.Skip Navigation Links.
2312311Skip Navigation Links.Skip Navigation Links.
2322321Skip Navigation Links.Skip Navigation Links.
2332331Skip Navigation Links.Skip Navigation Links.
2342341Skip Navigation Links.Skip Navigation Links.
2352351Skip Navigation Links.Skip Navigation Links.
2362361Skip Navigation Links.Skip Navigation Links.
2372371Skip Navigation Links.Skip Navigation Links.
2382381Skip Navigation Links.Skip Navigation Links.
2392391Skip Navigation Links.Skip Navigation Links.
2402401Skip Navigation Links.Skip Navigation Links.
2412411Skip Navigation Links.Skip Navigation Links.
2422421Skip Navigation Links.Skip Navigation Links.
2432431Skip Navigation Links.Skip Navigation Links.
2442441Skip Navigation Links.Skip Navigation Links.
2452451Skip Navigation Links.Skip Navigation Links.
2462461Skip Navigation Links.Skip Navigation Links.
2472471Skip Navigation Links.Skip Navigation Links.
2482481Skip Navigation Links.Skip Navigation Links.
2492491Skip Navigation Links.Skip Navigation Links.
2502501Skip Navigation Links.Skip Navigation Links.
2512511Skip Navigation Links.Skip Navigation Links.
2522521Skip Navigation Links.Skip Navigation Links.
2532531Skip Navigation Links.Skip Navigation Links.
2542541Skip Navigation Links.Skip Navigation Links.
2552551Skip Navigation Links.Skip Navigation Links.
2562561Skip Navigation Links.Skip Navigation Links.
2572571Skip Navigation Links.Skip Navigation Links.
2582581Skip Navigation Links.Skip Navigation Links.
2592591Skip Navigation Links.Skip Navigation Links.
2602601Skip Navigation Links.Skip Navigation Links.
2612611Skip Navigation Links.Skip Navigation Links.
2622621Skip Navigation Links.Skip Navigation Links.
2632631Skip Navigation Links.Skip Navigation Links.
2642641Skip Navigation Links.Skip Navigation Links.
2652651Skip Navigation Links.Skip Navigation Links.
2662661Skip Navigation Links.Skip Navigation Links.
2672671Skip Navigation Links.Skip Navigation Links.
2682681Skip Navigation Links.Skip Navigation Links.
2692691Skip Navigation Links.Skip Navigation Links.
2702701Skip Navigation Links.Skip Navigation Links.
2712711Skip Navigation Links.Skip Navigation Links.
2722721Skip Navigation Links.Skip Navigation Links.
2732731Skip Navigation Links.Skip Navigation Links.
2742741Skip Navigation Links.Skip Navigation Links.
2752751Skip Navigation Links.Skip Navigation Links.
2762761Skip Navigation Links.Skip Navigation Links.
2772771Skip Navigation Links.Skip Navigation Links.
2782781Skip Navigation Links.Skip Navigation Links.
2792791Skip Navigation Links.Skip Navigation Links.
2802801Skip Navigation Links.Skip Navigation Links.
2812811Skip Navigation Links.Skip Navigation Links.
2822821Skip Navigation Links.Skip Navigation Links.
2832831Skip Navigation Links.Skip Navigation Links.
2842841Skip Navigation Links.Skip Navigation Links.
2852851Skip Navigation Links.Skip Navigation Links.
2862861Skip Navigation Links.Skip Navigation Links.
2872871Skip Navigation Links.Skip Navigation Links.
2882881Skip Navigation Links.Skip Navigation Links.
2892891Skip Navigation Links.Skip Navigation Links.
2902901Skip Navigation Links.Skip Navigation Links.
2912911Skip Navigation Links.Skip Navigation Links.
2922921Skip Navigation Links.Skip Navigation Links.
2932931Skip Navigation Links.Skip Navigation Links.
2942941Skip Navigation Links.Skip Navigation Links.
2952951Skip Navigation Links.Skip Navigation Links.
2962961Skip Navigation Links.Skip Navigation Links.
2972971Skip Navigation Links.Skip Navigation Links.
2982981Skip Navigation Links.Skip Navigation Links.
2992991Skip Navigation Links.Skip Navigation Links.
3003001Skip Navigation Links.Skip Navigation Links.
3013011Skip Navigation Links.Skip Navigation Links.
3023021Skip Navigation Links.Skip Navigation Links.
3033031Skip Navigation Links.Skip Navigation Links.
3043041Skip Navigation Links.Skip Navigation Links.
3053051Skip Navigation Links.Skip Navigation Links.
3063061Skip Navigation Links.Skip Navigation Links.
3073071Skip Navigation Links.Skip Navigation Links.
3083081Skip Navigation Links.Skip Navigation Links.
3093091Skip Navigation Links.Skip Navigation Links.
Count: 310, Time: 00:00:00.0156265

Share (without adding to database):

Source code

0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
//.NET Regex.Match Online Tester: www.systemtextregularexpressions.com

//Namespace
using System.Text.RegularExpressions;

//Regex Pattern
string pattern = @"\d";

//Regex example #1
Regex r = new Regex(@"\d");
Match m1 = r.Match("input text");
MatchCollection mc1 = r.Matches("input text");

//Regex example #2
Match m2 = Regex.Match("input text", @"\d");
MatchCollection mc2 = Regex.Matches("input text", @"\d");
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
'.NET Regex.Match Online Tester: www.systemtextregularexpressions.com

'Namespace
Imports System.Text.RegularExpressions

'Regex Pattern
Dim pattern As String = "\d"

'Regex example #1
Dim r As Regex = New Regex("\d")
Dim m1 As Match = r.Match("input text")
Dim mc As MatchCollection = r.Matches("input text")

'Regex example #2
Dim m2 As Match = Regex.Match("input text", "\d")
Dim mc2 As MatchCollection = Regex.Matches("input text", "\d")

Home     Match     Replace     Split     Help     Library     Contacts     netregex rss

Made by Koshevoy Dmitry [8Bytes],

© 2014-2018 Ukraine, Nikolaev.