Questions tagged [pcre2]

A revised API for the PCRE library, which is a set of functions, written in C, that implement regular expression pattern matching using the same syntax and semantics as Perl, with just a few differences.

The new API is more extensible, and it was simplified by abolishing the separate "study" optimizing function; in PCRE2, patterns are automatically optimized where possible. Since forking from PCRE1, the code has been extensively refactored and new features introduced. See https://www.pcre.org/current/doc/html/pcre2.html for more details.

32 questions
-1
votes
1 answer

Regex: How to recover roman numbered titles and their respective contents

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 pattern of a new line followed by a roman number followed (or not) by dot or hyphen and the title…
celsowm
  • 846
  • 9
  • 34
  • 59
-2
votes
2 answers

Regex - Recursion - nested matches with multiple ending

this is my first question on stackoverflow so please bare with me here. Also I am not a native english speaker. (16.02.2022) ANSWER (https://regex101.com/r/4FRznK/1 from Comment on Answer). Special thanks to Casimir et Hippolyte for your help! I…
1 2
3