how to make regex for ? and = in javascript?
I need something from
http://localhost/search?search=words
to
http://localhost/search/search/words
(? search =) to (/ search /)
<script> var ss = "http://localhost/search?search=words".replace("/\?search\=/g", "/search/"); document.write(ss); </script>
BTW: just some right, not rewriting htaccss. Thanks.
source share