use warnings; use strict; while (<DATA>) { print if /\QCOPYRIGHT(C)/ } __DATA__ foo COPYRIGHT(C) bar COPYRIGHT
prints:
foo COPYRIGHT(C)
See also quotemeta
In reply to Re: regex problem
by toolic
in thread regex problem
by vishnu.prasad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |