hypercan Have unordered match in sub-expressions.

Question:

Hyperscan 5.4.0 compiles the following rule: have unordered match in sub expressions

0  :/ com$/Q
1:/http./Q
2:/  ( ! ( 0)&( 1))/C

reason:

Because the two subexpressions 0 and 1 in the logical combination of rule 2 contain rules leading to disorder, which are not supported in hypersan. Rules similar to rule 0 can be used alone, but they are not allowed in combination logic https://github.com/intel/hyperscan/issues/234

Revision:

Remove the rule of 0 in combinatorial logic,

reference resources:

https://github.com/intel/hyperscan/issues/234

https://gitmemory.com/issue/intel/hyperscan/234/626130718

https://bestofcpp.com/repo/intel-hyperscan-cpp-regular-expression

http://intel.github.io/hyperscan/dev-reference/compilation.html#logical -combinations

https://github.com/intel/hyperscan/releases

Read More: