Home
Tester
Reference
About
Pattern
(?<=^|;)((?<range>\d+-\d+)|(?<integer>\d+))(?=$|;)
Input
123-234
;FOO-456;
45-67
;FOO-FOO;
890
;FOO-123;
11-22
;
123
;
123
;
44-55
;
098-567
;
890
;123-FOO;
123-234;FOO-456;45-67;FOO-FOO;890;FOO-123;11-22;123;123;44-55;098-567;890;123-FOO;
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
9
matches found in about
6
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
${range}
${integer}
0
0
123-234
123-234
empty string
1
16
45-67
45-67
empty string
2
30
890
empty string
890
3
42
11-22
11-22
empty string
4
48
123
empty string
123
5
52
123
empty string
123
6
56
44-55
44-55
empty string
7
62
098-567
098-567
empty string
8
70
890
empty string
890
123-234
;FOO-456;
45-67
;FOO-FOO;
890
;FOO-123;
11-22
;
123
;
123
;
44-55
;
098-567
;
890
;123-FOO;
empty string
123-234
;FOO-456;
45-67
;FOO-FOO;
890
;FOO-123;
11-22
;
123
;
123
;
44-55
;
098-567
;
890
;123-FOO;