my $line = ' [Category("notestrecord")]'; my $pattern = 'Category("notestrecord")'; if($line =~ /\Q$pattern/) { print "We have a match!"; } else { print "No match!"; }
In reply to Re: Problem with input strings that have "[]" brackets
by edimusrex
in thread Problem with input strings that have "[]" brackets
by Laszlo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |