Perl : lines contains only Aug but not Augest

view story

http://www.unix.com – I am trying to write an perl regular expression to print only the lines containing Aug. The lines in a file may contain Augest,Aug anything. But it should only print the lines that contain Aug. Code: sample.txt Tue Aug  7 03:54:12 2012 Tuesday Augest  31 03:54:12 2011 Tuesday Auge  31 03:54:12 2011 But if I use the below expression, it is treating that contains the text Aug including Augest,Aug also. But I need only the lines that contain Aug if( $line=~/Aug/i) Could anyone please help on this? Thanks in advance... Regards, GS (HowTos)