regex - perl regular expression to find real .error in log without missing interpreting -


i need write simple regular expression parse build log, error key:

error_key = .*error \w\d+.*|error 

will mistakenly match:

scanresult32 - 0 error(s), 145 warning(s) 

i need watch text "." in front of error, "xxyyzz.error"

can show me how correct regular expression?

match literal . infront of error:

error_key = .*error \w\d+.*|\.error 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -