I have trouble finding a regex matching this pattern:
- A numeric (decimal separator can be
.or,), followed by - a dash
-, followed by - a numeric (decimal separator can be
.or,), followed by - a semi-column or a space character
This pattern can be repeated one or more time.
The following examples should match the regex:
1-2;
1-2;3-4;5-6;
1,0-2;
1.0-2;
1,0-2.0;
1-2 3-4;
1-2 3,00-4;5.0-6;
The following examples should not match the regex:
1-2
1 2;
1_2;
1-2;3-4
1 2;appears in both the list of items that should match and the list of items that shouldn't match.