Closed robouk closed 9 years ago
Can't figure out the pattern expression as it does not appear to be standard regex.
I would expect pattern /\.(mp3|mp4)/gi to affect the following filetypes:
/\.(mp3|mp4)/gi
The pattern only affects .mp3 and .mp4. How would a user create a case insensitive pattern?
.mp3
.mp4
The following expression should work: .*(?i)(mp3|mp4)$
(?i) makes the expression on the right hand side case insensitive.
Can't figure out the pattern expression as it does not appear to be standard regex.
I would expect pattern
/\.(mp3|mp4)/gi
to affect the following filetypes:The pattern only affects
.mp3
and.mp4
. How would a user create a case insensitive pattern?