Flags go at the end.
/regex/i
i
is for case-Insensitive (or ignore-case)
More Related Contents:
- Split a string between special characters [closed]
- Not able to get Regular Expression in javascript
- Regex to replace multiple spaces with a single space
- Regex to match all instances not inside quotes
- Check for special characters in string
- Regular expression which matches a pattern, or is an empty string
- Template literal inside of the RegEx
- JavaScript regex pattern concatenate with variable
- javascript regular expression to check for IP addresses
- replace all occurrences in a string [duplicate]
- Passing regex modifier options to RegExp object
- How to access object property with invalid characters
- How to ignore acute accent in a javascript regex match?
- Regex that can match empty string is breaking the javascript regex engine
- JavaScript replace/regex
- Regular Expression for formatting numbers in JavaScript
- Find all elements whose id begins with a common string
- Regular Expression – Extract subdomain & domain
- Regex for Umlaut
- Switch statement for string matching in JavaScript
- JavaScript text between double quotes
- Use of capture groups in String.split() [duplicate]
- Converting latitude and longitude to decimal values
- Regex in JavaScript for validating decimal numbers
- Remove all occurrences except last?
- Regex to grab strings between square brackets
- What is the best way to parse html in google apps script
- What is the advantage of unroll the loop compared to shorter regex notation with quantified alternatives?
- Convert string to Pascal Case (aka UpperCamelCase) in Javascript
- How do you split a javascript string by spaces and punctuation?