Skip to content

Add Support For Zeek-Style Patterns #5

@0xekez

Description

@0xekez

Currently paraglob supports glob style patterns. Zeek uses a different pattern type in its scripting layer which use the same syntax as flex regular expressions. This pattern matching is implemented in src/RE.h/cc inside the zeek/zeek repo. Adding support for these patterns in paraglob could potentially make it more useful for people using Zeek.

I think the current meta-word extraction approach should still work fine with some slightly more complicated parsing. Then its just a matter of determining what sort of patterns the paraglob contains in its constructor and matching using the appropriate method during get operations.

It would also be interesting to consider when combining regex style patterns with a | might increase performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions