By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 6 Duplicates: 0 Warnings: 0
| REGEXP_SUBSTR(REGEXP_SUBSTR(myStr, '.*/(\d+)(?![^(]*\))'), '\d+$') |
|---|
| 13 |
| 1 |
| 1 |
| 8 |
| 9 |
| 2 |
Records: 6 Duplicates: 0 Warnings: 0
| REGEXP_SUBSTR(REGEXP_SUBSTR(myStr, '.*/(\d+)(?![^(]*\))'), '\d+$') |
|---|
| 13 |
| 1 |
| 1 |
| 8 |
| 9 |
| 2 |