Front page | perl.beginners |
Postings from April 2002
Re: grep (small doubt)
Thread Previous
|
Thread Next
From:
Sudarsan Raghavan
Date:
April 2, 2002 23:41
Subject:
Re: grep (small doubt)
Message ID:
3CAAB21C.4DBADF2A@india.hp.com
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 atleast 3 but not more than 4.
>
> Many Thanks
> Mandar
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
Thread Previous
|
Thread Next