After extract text from PDFs files using pdftotext, I am trying to recover some their titles and respective contents. This batch of files have a patt ...
After extract text from PDFs files using pdftotext, I am trying to recover some their titles and respective contents. This batch of files have a patt ...
I am trying to extract chapters/sections for txt files whose were generated using pdftotext on portuguese Lawsuits documents. Initially I tried this r ...
I have a very interesting problem. I'd like to use PCRE2, and its JIT function. The task is simple: read lines from a file, and find patterns. Here ...
I need PCRE2 regex to find all occurences of "no" as well as first and last occurences of "yes". Expected results: I try this regex but it don't w ...
I use pcre2_substitute in C. The output string is set by If the string is longer than 1024 characters, pcre2_substitute returns -48 error. Befo ...
I replace the first occurrence of the match with pcre2_substitute, I know that I should repeat pcre2_substitute in a loop for replacing the next ma ...
need to include pcre2 static library in my CMake project. I've built last version of pcre2 from official sources and got libpcre2-32.a (I need 32- ...
I am not certain if there's any regex magic that can do this: what I am trying to do is capture an entire line if it contains this pattern: ...
In the following regex: I want to return a single match consisting for two lines: I want to use EXCLUDE as string identifying that the entire li ...
Trying to find a command that is flexible enough to allow for some variations of the string, but not other variations of it. For instance, I am looki ...
Currently I'm working on a regular expression wrote in PCRE2 to check a range of IP address I need the regular expression to check also if in the s ...
Compiled PCRE2 10.39 from source on aarch64 (Apple M1). If I use the pattern Product\d{2,} it compiles and matches correctly, but if I instead use the ...
I need the PCRE for this command - git log -i -P --all --grep='^(?=.*fix)(?=.*a)(?=.*bug)' It shows - fatal: cannot use Perl-compatible regexes when ...
I'm sorry I found it difficult to express this question with my poor English. So, let's go directly to a simple example. Assume we have a subject str ...