Sid,
try:
my $ty="polica.op";
if($ty =~ /\.+/)
{
print "Found a dot!\n";
}
Steve
On Tue, Jun 08, 2004 at 03:34:29AM +0530, Sidharth wrote:
> hi all,
> can anyone tel me how to look for files which conatain dotsin it.
> i.e
> file1.txt
> file
Roberto Etcheverry wrote:
hi all,
can anyone tel me how to look for files which conatain dotsin it.
i.e
file1.txt
file2.txt
how to check for dots in filename using regular expression.
is it correct
my $ty=polica.op
if($ty =m/ (.*)\.o/)
The regular expresion should be /(.*)\.o/. Otherwise
> hi all,
> can anyone tel me how to look for files which conatain dotsin it.
> i.e
> file1.txt
> file2.txt
> how to check for dots in filename using regular expression.
> is it correct
>
> my $ty=polica.op
> if($ty =m/ (.*)\.o/)
The regular expresion should
hi all,
can anyone tel me how to look for files which conatain dotsin it.
i.e
file1.txt
file2.txt
how to check for dots in filename using regular expression.
is it correct
my $ty=polica.op
if($ty =m/ (.*)\.o/)
print found;
plz reply soon
sid