in reply to A Question on Regex
#!/usr/local/bin/perl use strict; use warnings; use re qw(debug); open IN, '<', '/root/Desktop/new file'; while(<IN>) { if($_ =~ /\$display(.*?);$/i) { print $_; } } close IN; [download]