I think you can just brute force check it if there is < 1000 cars. Use indexOf to test each option against the option string.
If you had 1000’s of cars to test, I would probably convert each option to a bit in a bitmask.
indexOf should be fine for checking if one option exists. I was just struggling with how to track/store only vehicles that have ALL the items in the option string, not just one.
I'm thinking a VIN array to store only the VINs that have all the options. And basically removing the VIN if one of them is not found. If all of the options are found, keep it. Not sure if that will work. I'm planned to try this today.
If I understand your data, you would loop through the array remembering the last VIN you saw. If you get through all the options for the VIN without a miss then it does have all of the options.
Thanks Alex. This approach will do the trick.
Appreciate the help.