I have a bunch of links that are used to filter information, see: https://i.sstatic.net/JHxPL.png
When you click on a link, I add it to an array. For example:
Venue>All = venue-0, Venue>Home = venue-1, Venue>Away = venue-2,
Vs>All = vs-0, Vs>Lefties = vs-1, Vs>Righties = vs-2
etc, etc, etc.
If the user clicks "All" in any category, I want to search through the array and remove any items that contain that category. For example: myArray['venue-1','venue-2','vs-1']...click Venue>all, remove 'venue-1' and 'venue-2' leaving myArray['vs-1'].
Can I do this using a regular expression like: /^venue/ and changing the word depending on which "All" you click?
I know I need to do a combination of $.inArray or indexOf() and splice() but I can't get it working.