Home
Tester
Reference
About
Pattern
^[^-]+\d(-\d+|\r?$)
Input
ala 1-2
kota 1
ala 1 kota 1-2
ala 1 ala 1 kota 1
ala 1-2 kota 1 ala 1 kota 1-2 ala 1 ala 1 kota 1
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
3
matches found in about
12
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
0
0
ala 1-2
-2
1
16
ala 1 kota 1-2
-2
2
32
ala 1
ala 1 kota 1
empty string
ala 1-2
kota 1
ala 1 kota 1-2
ala 1 ala 1 kota 1
empty string
-2
kota 1
-2
whitespace
empty string
empty string