Answer the question
In order to leave comments, you need to log in
How to use JS to find a value in a string and replace it and some more?
There is a line site.ru/?reg=77&data=55
We need to find reg and replace everything between = and &
But the script must be universal, so that even if I need to replace the last value, for example date, then everything after equal must be replaced there /
How to implement it? Can't catch up.. and replace used and indexOf
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