Regular Expressions
Case-insensitive pattern matching
To achieve a case-insensitive pattern matching, add the
i modifier
after the closing slash of the regular expression.
Example:
When searching for HTML tags, we preferably do a case-insensitive search. e.g.:
if ($doc =~ /<TABLE.*>/i) { }
# This would match <TABLE...>, <table>, <TAblE>, etc.
Table of Contents.
Next.