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
Post a Comment