What does /i at the end of a regex mean?

Some Java Guy picture Some Java Guy · Feb 11, 2011 · Viewed 12.6k times · Source

What is the meaning of /i at the tail of this regex?

var time = /^([1-9]|1[0-9]):([0-5][0-9])(\s[a|p]m)$/i;

Answer

Sachin Shanbhag picture Sachin Shanbhag · Feb 11, 2011

/i stands for ignore case in the given string. Usually referred to as case-insensitive as pointed out in the comment.