hello, i have the following in a text file:
ip_address tab tab date
where each word represents itself, as in the ip address could be 45.54.232.3 and the dates are all of the format 2002-31-01
i would like to create a search that given a date in the format 2002-31-01 and an ip adress 100.2.3.4 that will search the file and decide if the two are there on the same line.. i'm just having trouble with my matching.
my variables are $ip and $date
what i want, but doesn't work:
/($ip)(\t\t)($date)/
where \t are tabs, (do i need to include the tabs?