[Bro] Query regarding pattern match
Johanna Amann
johanna at icir.org
Sun Sep 28 07:49:25 PDT 2014
Actually I was wrong - the example you cited explains it correctly. You
need to use double parentheses with the character classes - if you use
[[:digit:]] it works perfectly.
Johanna
On 28 Sep 2014, at 16:46, Balasubramaniam Natarajan wrote:
> Thanks for explaining.
>
> I got a bit confused by the Subexercise Part 2 example on the link
> https://www.bro.org/current/exercises/prog-primer/part1.bro Now I
> understand that we cannot use such character classes.
>
> On Sun, Sep 28, 2014 at 5:45 PM, Johanna Amann <johanna at icir.org>
> wrote:
>
>> Hello,
>>
>> Bro regular expressions does not support this kind of character
>> classes.
>> As far as I know it only supports listing all letters you want to
>> include,
>> negation or ranges. The line matches because the letter t is included
>> in
>> :digit: as well as s2.
>>
>> Johanna
>>
>>
>
> --
> Regards,
> Balasubramaniam Natarajan
> http://blog.etutorshop.com
More information about the Bro
mailing list