in reply to Regular Expression matching more than one condition

i want to take the line if it not starts with INFO/DEBUG/ID/<blankspace>.

Here is one way to do it.

while(<DATA>){ if(($_ !~ /^(INFO|DEBUG|ID|\s+)/)){ print"Line check\n"; } } outputs: -------- Line check Line check __DATA__ ID Run Timestamp Entry Attempt Message Type Messag +e 13 251 2006-07-06 13:21:14.0 1 1 INFO Starti +ng for (ActivityId=13, DataSource=dunkle-rs) 13 251 2006-07-06 13:21:14.0 2 1 INFO Queryi +ng remote datasource ...

Prasad