Answer the question
In order to leave comments, you need to log in
How to cut a line?
There is this line: http://test.ru/admin/import
.
You need to take only a word import
from all this, that is, the second in a row.
The problem is that addresses can change, for example: http://test.ru/user/profile
.
Here you only need to take profile
.
var str = "http://test.ru/admin/import";
str.substring(/ здесь не могу придумать регулярные выражения /);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question