Regex seems to always take priority #377
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
help wanted
Extra attention is needed
I'm new to Rust and new to Logos, so this could just be me...but when using regex is seems like it always stomps on the other tokens. The snippet below has essentially calls out three tokens, one represents an action
alert
, another is protocoltls
and then network information.Here is the code with a regex
This outputs:
However, if I comment out the
NetworkInfo
section, myAction
andProtocol
will work just fine.Output:
This part of the input
$HOME_NET any -> $EXTERNAL_NET
represents a source host, source port, direction, destination host and destination port. These things are pretty fluid so outside of regex, not really sure of how I would go about targeting them.Is there a way to have regex not overpower everything around it...or am I doing something incorrectly? I read the token-disambiguation but couldn't seem to find a way to lower regex priority.
The text was updated successfully, but these errors were encountered: