Case-insensitive regular expression tests

View source. Check the console.

Which implementation is correct?