specific perl regex string in brackets after keyword -
i need please perl regex; logs lines contains user='(string)@(realm)'
need string in first bracket after user=
... $line = q[user='(string)@(realm)']; $line =~ /user='\((\w+)\)@\((\w+)\)'/; print $1; # print string; print $2; # print realm; ...
Comments
Post a Comment