If you want only part of the regex to be case insensitive (as my original answer presumed), then you have two options:
Read moreWhich of the following call to Preg_match will return false?
preg_match() returns 1 if the pattern matches given subject , 0 if it does not, or false on failure . This function may return Boolean false , but may also return a non-Boolean value which evaluates to false .
Read moreHow do you ignore case sensitive in regex?
If you want only part of the regex to be case insensitive (as my original answer presumed), then you have two options:
Read moreIs Preg_match case insensitive?
preg_match is case sensitive .
Read moreWhich function string is matches for regular expression given in pattern in case sensitive way?
If you want to find strings that matches a given regular expression pattern, we use the exec function .
Read moreWhat does this regex do?
A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that specifies a search pattern in text . Usually such patterns are used by string-searching algorithms for “find” or “find and replace” operations on strings, or for input validation.
Read moreWhat is Preg_match?
The preg_match() function returns whether a match was found in a string .
Read more