H
H
Hanry6542020-04-25 14:07:14
JavaScript
Hanry654, 2020-04-25 14:07:14

How to subtract the numbers from "2462kkkk43453" only up to the letter "k" tobish 2462?

And if you know a good article about regular expressions, you can throw it off, I will only be glad)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hzzzzl, 2020-04-25
@Hanry654

parseInt will suffice until the first non-digit

S
sous_tabasko1, 2020-04-25
@sous_tabasko1

https://learn.javascript.ru/regexp-methods

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question