T
T
TyllerDurden2021-06-28 12:59:43
JavaScript
TyllerDurden, 2021-06-28 12:59:43

How to cut text from a specific character to the end of the numbers?

Hello. There is a text like


>>12345
some text

>>78900
some more text


How do I cut out anything that starts with > to the end of the digits? Those. in this example, the output should be an array with two elements. 12345, 78900

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2021-06-28
@TyllerDurden

str.match(/(?<=>)\d+/g)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question