Case insensitive regex not supported
ranvijayj opened this issue · 4 comments
ranvijayj commented
"^.(error|failure|connection|timeout).$/i"
archiecobbs commented
That looks like Javascript regular expression syntax. There is no Javascript here.
logwarn
uses UNIX extended regular expression syntax, described here.
ranvijayj commented
Can you please help me with case insensitive matching? @archiecobbs
archiecobbs commented
Not supported currently.
I'll consider this a feature request.
archiecobbs commented
Oops, I forgot, this is supported. Use the -c
flag for case-insensitive matching.
See the ManPage for details.