M
M
Messi2020-01-15 12:56:59
Regular Expressions
Messi, 2020-01-15 12:56:59

How to get numbers from strings?

How do I get the last digits after :in a string

"222.000000000000000000:1:3,222.000000000000000000:1:3,225.000000000000000000:1:1,222.000000000000000000:1:3,222.000000000000000000:1:3"

As a result, I should get: 3, 3, 1, 3, 3.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-01-15
@FitTech

https://regex101.com/r/sFugr5/1/
\d(?=,|$)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question