Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript case insensitive regex

// It's the 'i' flag at the end of the expression.

/hello world/.test('Hello World'); // False
/hello world/i.test('Hello World'); // True
 
PREVIOUS NEXT
Tagged: #javascript #case #insensitive #regex
ADD COMMENT
Topic
Name
2+4 =