I'm doing this in jsfl, which uses the javascript syntax.
I want to check for mp3 or wav files which are not the first in a sequence. A loop feeds a variable 'audioFile' the following values (---a.mp3, -----b.mp3, ----c.mp3). I then check the variable using this code:
var patt=/([b-z])((\.mp3)|(\.wav))/gi;
if(patt.test(audioFile)){}
This returns true for -----b.mp3 but false for ---a.mp3 and ----c.mp3. Shouldn't the 'b' and 'c' files return true?
If I change it to [a-z] it returns true for ---a.mp3 and ----c.mp3 but it returns false for -----b.mp3. Shouldn't all three sound file names return true?