Sorry to keep bothering u guys but im new to using expressions i always did stuff the long and wrong way lol
I have this snippet
if ($first =~ /[\d\\\/~`@#\$\%^&*()-_\+\=\[\{\]\}\|\"\']/){
push @errors, qq(First Name Is Invalid<BR>);
}
it works ok if the string contains numbers or characters it pushes the error. The problem is if the string contains any capitals it also pushes the errors. Please, how do i make the comparison case insensitive. thank you
I have this snippet
if ($first =~ /[\d\\\/~`@#\$\%^&*()-_\+\=\[\{\]\}\|\"\']/){
push @errors, qq(First Name Is Invalid<BR>);
}
it works ok if the string contains numbers or characters it pushes the error. The problem is if the string contains any capitals it also pushes the errors. Please, how do i make the comparison case insensitive. thank you