Ending Digit Splitter
This splitter is used to process a split by adding a space before the ending digits if a token ends with digits.
Split a token in front of ending digits.
| File Name | Input | Output |
|---|---|---|
| 26.txt | questions.1) | questions. 1) |
| 26.txt | hereditary2) | hereditary 2) |
| 26.txt | disease3) | disease 3) |
| 14849.txt | shuntfrom2007. | shuntfrom 2007. |
| 73.txt | jk5 | jk 5 |
| Matchers | ||
|---|---|---|
| Matcher | Regular Expression | Examples |
| Ends with digit(s) | ^(.*)([a-zA-Z\\.]+)(\\d+)$ |
|
| Filters (Exceptions) | ||
|---|---|---|
| Filter (Exception) | Regular Expression | Examples |
| 1. [Upper]+ before ending digit | ^([A-Z]+)(\\d+)$ |
|
| 2. [char]+, [-], [char]+ before ending digit | ^([a-zA-Z]+)-([a-zA-Z]+)(\\d+)$ |
|
| 3. [Greek alphabet] before ending digit | ^(.*)(alpha|beta|gamma|delta|epsilon)(\\d)$ |
|
| 4. [char] before ending digit | ^([a-zA-Z])(\\d+)$ |
|