[ 
https://bro-tracker.atlassian.net/browse/BIT-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22647#comment-22647
 ] 

Lloyd Brown commented on BIT-1497:
----------------------------------

That seems to be the case.  Sorry to annoy you unnecessarily.

To be honest, I'm more familiar with the PCRE-style shortcuts (eg '\s') than 
this style.  Those can exist either inside or outside a char class.  Old 
habits, I guess.....

Thanks,
Lloyd

> pattern [:space:] shortcut not matching as expected
> ---------------------------------------------------
>
>                 Key: BIT-1497
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1497
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: 2.4
>         Environment: Running tests using Bro 2.4.1 (precompiled from 
> http://download.opensuse.org/repositories/network:/bro/xUbuntu_14.10/) on 
> Ubuntu 14.10.
> Running using a simple "/opt/bro/bin/bro myscript.bro" syntax.
>            Reporter: Lloyd Brown
>              Labels: pattern
>         Attachments: patterns.space_shortcut.testcase.bro, 
> patterns.space_shortcut.testcase.bro.output
>
>
> I'm trying to do some RegEx-like pattern matching of a data stream using Bro, 
> and I'm finding that, at least some of the shortcuts, like '[:space:]' don't 
> seem to act as expected.
> In short, I expected that '[:space:]' and '[ \f\n\r\t\v]' would be 
> interchangeable, but that doesn't seem to be the case.  I have not tested any 
> other shortcuts like '[:alpha:]', '[:digit:]', etc.  Just '[:space:]' so far.
> I will attach an example script, as well as a file containing the output I'm 
> seeing.



--
This message was sent by Atlassian JIRA
(v7.0.0-OD-08-002#70107)
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to