K
K
Kusmich2015-09-14 14:28:46
JavaScript
Kusmich, 2015-09-14 14:28:46

Is it possible to somehow remove Cyrillic characters from a string?

For example, there is a line

var str = "test-1 тестывлфыжвдлжфдлвыжлжддлжлд test-2"


need to stay"test-1test-2"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2015-09-14
@Kusmich

str.replace(/[a-zA-ZOE\s+]/g, '')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question