$id_to_match="1QJ8:A|PDBID|CHAIN"; while(<>) { if($_=~/$id_to_match/) } [download]
In reply to Question on REGEXP by Anonymous Monk