Bubble Foundry


Posts tagged with: Regex

regexInArray
Javascript arrays have an inArray() method that tests for the existence of a search object and returns its key. However, sometimes you don’t want to test for an exact match. I wrote a little function that will test a regex instead. Like inArray() it returns -1 if none of the elements satisfy the condition. function […] Read more – ‘regexInArray’.