Hi,
I'm trying to split a line if it's match with my pattern.
I would like to get
[user:myuser][filename:test.txt][status:pending][here something else] from a line.
eg. $line is
Code:
[localhost 2009/09/01 12:34:02] ME INFO: [user:myuser][filename:test.txt][status:pending][here something else]
Code:
if($line =~ /.*(\[.*\]{3,}).*/)
{
print $line;
}
My regex doesn't match with my line.
Can someone tell me what's wrong with my regular expression.
Thanks