[Bro-Dev] [JIRA] (BIT-758) New function split_esc
Seth Hall (JIRA)
jira at bro-tracker.atlassian.net
Thu Nov 7 08:15:31 PST 2013
[ https://bro-tracker.atlassian.net/browse/BIT-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14621#comment-14621 ]
Seth Hall commented on BIT-758:
-------------------------------
Couldn't you get the same functionality with one of the split functions using this pattern?
/[^\/]#/
> New function split_esc
> ----------------------
>
> Key: BIT-758
> URL: https://bro-tracker.atlassian.net/browse/BIT-758
> Project: Bro Issue Tracker
> Issue Type: New Feature
> Components: Bro
> Affects Versions: git/master
> Reporter: Matthias Vallentin
>
> 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
> {noformat}
> a#b\#c#d
> {noformat}
> into {{[b\#c, d|a,]}}. 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 BIT-757 first.
--
This message was sent by Atlassian JIRA
(v6.2-OD-01#6204)
More information about the bro-dev
mailing list