Home
Tester
Reference
About
Pattern
\G(\d+(?:-\d+)?)(?:(,)|\z)
Input
1,
6-10,
10000,
2,
10-11
1,6-10,10000,2,10-11
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
5
matches found in about
0
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
$2
0
0
1,
1
,
1
2
6-10,
6-10
,
2
7
10000,
10000
,
3
13
2,
2
,
4
15
10-11
10-11
empty string
1,
6-10,
10000,
2,
10-11
empty string
1
,
empty string
6-10
,
empty string
10000
,
empty string
2
,
empty string
10-11
empty string