Hi Ali,
As per the above Scenario , It will be required to use some ready made Javascript string functions . Assuming that the URL parameter vanity_url, will always have a special character "-" before the value that needs to be captured in a prop variable , we can use the below piece of code:
Var vanity_ur= s.utility.getQueryParam('vanity_url');
Var index= vanity_ur.lastIndexOf("-"),
Var length=vanity_ur.length;
Var val= vanity_ur.substring(index, length);
s.prop8=val;
Please let us know if you have any questions or queries.
Thanks & Regards
Parit Mittal