#!/usr/bin/perl use strict; my $text = 'sd(sd)sd'; my $a = quotemeta( 'sd(sd)sd' ); if ($text =~ /$a/ ) { print "yes"; } else { print "no"; }
In reply to Re: pattern match special char
by bichonfrise74
in thread pattern match special char
by Selvakumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |