daisydoos
asked on
Javascript regex
Hi,
I want to match everything in this string from "sort" to the ampersand but not including it
var string = "somedomain.com?sort=prod. name_asc&r owspp=10";
the regex I'm using is /sort=(.*?)[^&]*/g
This works, but it doesn't in Javascript ...
Many thanks!
I want to match everything in this string from "sort" to the ampersand but not including it
var string = "somedomain.com?sort=prod.
the regex I'm using is /sort=(.*?)[^&]*/g
This works, but it doesn't in Javascript ...
Many thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.