I have this piece of code:
{
if ($4 ~search)
{
match ($4, /([0-9]{2}\/([a-zA-z]{3})\/([0-9]{4}))/, dates)
print dates[1] "\t" dates[2] "\t" dates[3]
}
}
and when it is run it produces this:
[19/Oct/2012:12:34:32
[19/Oct/2012:12:34:32
[19/Oct/2012:12:34:33
So in theory it is working and producing some of what I want but how do I get it to just produce 19/Oct/2012
any suggestions?
My questions is that I would like the output to just produce the date 19/Oct/2012?