i'm trying to remove value from existing array. i have no idea to how to check the array for specific value and remove it. my array looks like
["Criteria.Make=scion", "Criteria.ModelName=xb", "Criteria.PriceMax=4000", "Criteria.ZipCode=23212", "Criteria.MaxDistance=50"]
i want to check if array exist Criteria.PriceMax={what ever dynamically generated value} i need to remove from the array.
i know i can use grep to remove it but i can come up with the exact need with my code
I check that value like this
$.inArray("Criteria.PriceMax",searchUrlBuilder)) > -1
won't work properly regex match will be the best but i have no idea how to do that.
thanks
{ Criteria: [ Model: 'xb', PriceMax: 4000 ]}. This way you wont need any regex hacking to find the property you need.