glogg icon indicating copy to clipboard operation
glogg copied to clipboard

regex error

Open lrc8000 opened this issue 5 years ago • 1 comments

When I use the below regular expression, it works in Sublime but didn't work in glogg.

r= '(?s)^[\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}]\s[N]\s[Devproxy.cpp\s732(.?)21200888]\s$'

in Sublime image

in glogg image

lrc8000 avatar Jun 22 '20 09:06 lrc8000

Released versions of glogg use QRegExp for matching. Looks like lookahead syntax should be (?=s).

The regex works as is in QRegularExpression based builds from master branch as well as in klogg fork.

variar avatar Jul 06 '20 20:07 variar