darvid / python-hyperscan

🐍 A CPython extension for the Hyperscan regular expression matching library.
https://python-hyperscan.readthedocs.io/en/latest/
MIT License
165 stars 28 forks source link

Support extended behaviour for patterns #11

Closed pombredanne closed 3 years ago

pombredanne commented 5 years ago

It would be useful to support extended pattern arguments. Today, NULL is passed when adding patterns https://github.com/darvid/python-hyperscan/blob/efbc82ef213bbf0c19d522b691e74e04d90635cf/hyperscan/hyperscanmodule.c#L184 and compile does not accept extended pattern arguments.

darvid commented 3 years ago

added in v0.2.0

usage examples (also see the unit tests for more examples)