The i Modifier Case Insensitivity : modifier « Regular Expression « Perl
- Perl
- Regular Expression
- modifier
The i Modifier Case Insensitivity
Format: s/search pattern/replacement string/i;
# Matching with the i option
while(<DATA>){
print if /norma/i; # Turn off case sensitivity
}
__DATA__
Steve
Jack
Tom
Norma
James
Jason
Related examples in the same category