[Bro-Dev] #758: New function split_esc
Bro Tracker
bro at tracker.bro-ids.org
Fri Jan 27 10:33:23 PST 2012
#758: New function split_esc
---------------------------+------------------------
Reporter: matthias | Owner:
Type: Merge Request | Status: new
Priority: Normal | Milestone:
Component: Bro | Version: git/master
Keywords: |
---------------------------+------------------------
In the topic branch `topic/matthias/split-escaped`, I added new
functionality to split strings that may contain an escaped split
expression. E.g., now it would be possible to split strings of the form
{{{
a#b\#c#d
}}}
into `[a, b\#c, d]`. This would otherwise not be possible, because one
cannot perform a lookahead with Bro's regular expressions.
I implemented this function as an utility function at the scripting layer,
rather than adding a new BiF. Ideally, we'd enhance `split_n` with this
ability and then propagate the changes through the respective `split*`
functions. But before this happens, it makes probably more sense to
address #757 first.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/758>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list