in reply to Re^3: new to perl : how to match ?
in thread new to perl : how to match ?
this the data file and i am checking for characters after "to".data to L650-F01 is ip address sdf sdf sdf sdf sdf sdfs Thu Oct 27 11:16:55 GMT 2005 data to L650-F01 is sdf..1 . . . sdf sdf sdf sdf sdf sdfs Thu Oct 27 11:16:55 GMT 2005 data to . . . #(no is here ) sdf gdfg dfgdf dfgdf dfgdf dfg Thu Oct 27 10:58:46 GMT 2005 data to MAP050-DFyutv01 is sdf gdfg dfgdf dfgdf dfgdf dfg Thu Oct 27 10:58:46 GMT 2005 data to . . . (same as above) sdf gdfg dfgdf dfgdf dfgdf dfg Thu Oct 27 10:58:46 GMT 2005 data to gbsdfghfif7 is ip address fgd dfgdf dfg dfg dfgd fdfgdf dfg ddfg fd dgfd Thu Oct 27 10:59:23 GMT 2005
is not checking for "data to . . . #(no is here ), data to gbsdfghfif7 is ip address" types.... i m confused on this. any clairifiactions pls let me know and i m working in it meanwhilewhile (! eof inFile) { $line .= ' ' . <inFile>; chomp $line; next if ! ($line =~ /logging\sto\s+\s+(.*?)\s+/i) and ! eof inFile;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: new to perl : how to match ?
by McDarren (Abbot) on Oct 28, 2005 at 08:53 UTC | |
by Sun (Initiate) on Oct 28, 2005 at 09:24 UTC | |
by 5mi11er (Deacon) on Oct 28, 2005 at 15:02 UTC |