hyperscan on mips
by me
I want hyperscan run on mips.
I have done:
1、write c function instead of SSE function;
2、compile on mips CPU;
3、run scan on mips CPU。
But,the result is not right. What's wrong?Please help, thanks.
3 years, 5 months
Almost every regular expression causes NotLiteral error.
by Daniel Praźmo
I am looking for a very efficient way of finding complex rregular
expressions in big file and I stumbled upon HyperScan library. I got it
compiled, but if I try to compile any regex, I get a NotLiteral error.
What I am trying to do is find every comment in a g-code file (comments
start with a semicolon and go to the end of line).
So, the standard regex for finding those lines would be *;.** with
multiline enabled.
As far as I understand your documentation, the string literal I should pass
as an input is */;.*/*
But when I try to parse it, I get a NotLiteral in line 89 of
shortcut_literal.cpp (c.m_max equals 4294967295). I tried many variations
like *";.*"*, *"/;.*/"*, *"/;.*/s"* and *"/;.*/m"* but none of them works,
[image: Przechwytywanie.PNG]
Is there something wrong with my expression or can it be possibly caused
that I compiled the HyperScan without PCRE library? I thought of the
latter, but as far I can get it to compile. Here is what I get when I try
to compile the HyperScan CMake project with PCRE library:
[image: Adnotacja 2018-10-31 165503.jpg]
What Can I do to make this thing work?
Regards,
Daniel.
3 years, 6 months
pcapscan
by Sooraj KS
Hello,
Please let me know how can I test HS extented parameters with pcapscan. The
pcapscan shows "Unsupported flag '{'"" when I add HS extended parameter. Am
I missing anything here?
~/hyperscan/build/bin# ./hscheck -e pattern.txt
OK: 1:/foo.*bar/{min_offset=10}
SUMMARY: 0 of 1 failed.
~/hyperscan/build/bin# ./pcapscan -n 10 pattern.txt data.pcap
Pattern file: pattern.txt
Unsupported flag '{'
I have installed HS version 5.0.0
Thanks,
Sooraj
3 years, 6 months