[Bro-Dev] #26: case insensitive regular expressions
Bro Tracker
bro at tracker.bro-ids.org
Fri Sep 14 11:28:42 PDT 2012
#26: case insensitive regular expressions
------------------------------+------------------
Reporter: vern | Owner:
Type: Feature Request | Status: seen
Priority: Normal | Milestone:
Component: Bro | Version:
Resolution: | Keywords:
------------------------------+------------------
Comment (by seth):
> Can {{{/abc/i}}} be shorthand for {{{/[Aa][Bb][Cc]/}}} when it gets
> processed? That makes the human expressions easier to read, and leaves
I've actually had this implemented in a branch for quite a while, but
there are some issues with how regular expressions are merged internally
where we can't currently leave the case insensitivity for one of the
regular expressions and and have another one case sensitive.
Here's an example…
{{{
const my_regex = /abc/i | /def/;
}}}
When combined, you'd like that to be the same as…
{{{
/([aA][bB][cC]|def)/
}}}
But that doesn't work right now without doing some larger changes to Bro
regular expression support.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/26#comment:8>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list