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.
Show replies by date