in reply to Question on REGEXP
my $id_to_match = '1QJ8:A|PDBID|CHAIN'; while (<>) { if (/\Q$id_to_match/) { # ... } }
See Escape sequences in perlre for details.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question on REGEXP
by Anonymous Monk on Mar 10, 2014 at 14:11 UTC | |
by choroba (Cardinal) on Mar 10, 2014 at 14:14 UTC | |
by poulhs (Beadle) on Mar 10, 2014 at 17:49 UTC | |
by Anonymous Monk on Mar 10, 2014 at 14:51 UTC |