#!/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;
In reply to Re: A Question on Regex
by Khen1950fx
in thread A Question on Regex
by Hari7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |