Mandar Rahurkar wrote:
> I am using following regexp :
>
> $skip=1;
>
> @list_neutral=grep /^.{3,4}[^d][^skip].*\.fea$/, @list;
This is what this regexp does
^ Start of the line, .{3,4} match any character but newline atleast
3 but not more than 4 times
not followed by 'd', no
@list=`ls`;
@list= glob "*d[^1]*_vow*.fea" ;
WHats wrong in using this ? it gives same results as if no caret was
there.
Mandar
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
well, i got a solution :
@list= glob "*[d]?_vow*.fea";
Thanks Anyways
Mandar
On Wed, 3 Apr 2002, Sudarsan Raghavan wrote:
> Mandar Rahurkar wrote:
>
> > Hi,
> > Its me again..
> >
> > 169b2_vow_band_1.fea
> > 2168d6_vow_band_1.fea
> >
> > @files = grep /^.{3}g[^1].*\.fea$/, @files;
> >
>
I am using following regexp :
$skip=1;
@list_neutral=grep /^.{3,4}[^d][^skip].*\.fea$/, @list;
this does not match as 3|4 option matches everything :(
Mandar
On Wed, 3 Apr 2002, Sudarsan Raghavan wrote:
> Mandar Rahurkar wrote:
>
> > Hi,
> > Its me again..
> >
> > 169b2_vow_band_1.fea
>
Mandar Rahurkar wrote:
> Hi,
> Its me again..
>
> 169b2_vow_band_1.fea
> 2168d6_vow_band_1.fea
>
> @files = grep /^.{3}g[^1].*\.fea$/, @files;
>
> can i have an or like for eg :
> @files = grep /^.{3|4}g[^1].*\.fea$/, @files;
>
You can write it as /^.{3,4}g(?!1).*\.fea$/
.{3,4} matches
Hi,
Its me again..
169b2_vow_band_1.fea
2168d6_vow_band_1.fea
@files = grep /^.{3}g[^1].*\.fea$/, @files;
can i have an or like for eg :
@files = grep /^.{3|4}g[^1].*\.fea$/, @files;
Many Thanks
Mandar
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR