I have a 4 MB log file from the Windows XP firewall that I am trying to find lines that have both DROP and IP address and port number. My regex-fu is weak, and I guess this is the reason I'm fighting.
The words "DROP", "10.1.1.1" (for example) and "8801" must be found on the same line and can be distributed on the line and separated by one or more other words.
Any help (or suggestions of another method for this) is greatly appreciated.
source share