Hi i have this kind of URLs
www.example.com/registration/star/xx223x/xxxx67x/xx
www.example.com/registration/star-mega/x45xx/xxxrfxx/xx
www.example.com/registration/manager/xxx34xx/xx
www.example.com/registration/pro/xxxxx/xxx
How can i using javascript and RegEx get the parameter after /registration/ and before the next / into variable? (star, star-mega, manager, pro)