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', not followed either 's' or 'k' or 'i' or 'p', 0 or more characters except newline, literal '.' and finally fea. Is this what you want to match. Can you provide some example strings. > > > 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 > > > 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]