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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -