I have the following string and I'm trying to retrieve the string between two symbols
http://mytestdomain.com/temp-param-page-2/?wpv_paged_preload_reach=1&wpv_view_count=1&wpv_post_id=720960&wpv_post_search&wpv-women-clothing[]=coats
I need to retrieve wpv-women-clothing[]
or any other string between the last &
and the last =
in the URL
Should I use regex for this or is there a function in Javascript/jQuery already well suited for this?
Thanks