x Did you like it? Well, then please consider making a donation :)

Get only Arabic digits

Use ([0-9]+) if you need to match more than one digit (only Arabic numbers!). Use (\d+) if you need all digits (all unicode digits).

Tags: #arabic digits, #digit, #digits, #get, #number, #numbers, #only, #parsing. Views: 3415. stackoverflow, 7/12/2015
Link 1: http://www.systemtextregularexpressions.com/m12/get-only-arabic-digits
Link 2: http://www.systemtextregularexpressions.com/m12 (short)

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

RegexOptions

IsMatch=true


#ValueIndexLengthGroupsCaptures
001234567891710Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
10641Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
21661Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
32681Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
43701Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
54721Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
65741Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
76761Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
87781Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
98801Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
109821Skip Navigation Links.
Expand Groups [2]Groups [2]
Skip Navigation Links.
Expand Captures [1]Captures [1]
Count: 11, Time: 00:00:00

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 = @"([0-9]+)";

//Regex example #1
Regex r = new Regex(@"([0-9]+)");
Match m1 = r.Match("input text");
MatchCollection mc1 = r.Matches("input text");

//Regex example #2
Match m2 = Regex.Match("input text", @"([0-9]+)");
MatchCollection mc2 = Regex.Matches("input text", @"([0-9]+)");
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 = "([0-9]+)"

'Regex example #1
Dim r As Regex = New Regex("([0-9]+)")
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", "([0-9]+)")
Dim mc2 As MatchCollection = Regex.Matches("input text", "([0-9]+)")

Home     Match     Replace     Split     Help     Library     Contacts     netregex rss

Made by Koshevoy Dmitry [8Bytes],

© 2014-2024 Ukraine, Nikolaev.