I need to get data after the last number in passed route including this number. For example:
| The whole route | Passed route | Next route |
| 388-351-302-351-406-255 | 388-351-302-351 | 351-406-255 |
| 344-382-254-476 | 344-382 | 382-254-476 |
| 251-202-4975-202-656-202-3221 | 251-202-4975-202-656-202 | 202-3221 |
But the problem is that passed route doesn't always match the whole route. For example.:
| 388-351-302-456-351-406-255 | 388-351-302-351 | 351-406-255 |
So, it's needed to orientate on the number of times the last point was in the string
Thanks a lot for any help!