1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-16 17:32:06 +01:00
pgpainless/hsregex
2022-12-15 18:13:39 +01:00
..
src Add dummy tests for hsregex module to fix jacoco 2022-12-15 18:13:26 +01:00
build.gradle Add support for different regex parsers 2022-12-15 18:13:16 +01:00
README.md Add README for hsregex module 2022-12-15 18:13:39 +01:00

Evaluate Regular Expressions in OpenPGP Signatures using TCL-Regex

RFC4880 specifies contains a section about RegularExpression subpackets on signatures. Within this section, the syntax of the RegularExpression subpackets is defined to be the same as Henry Spencer's "almost public domain" regular expression package.

Since Java's java.util.regex syntax is too powerful, this module exists to implement regex evaluation using tcl-regex which appears to be a Java port of Henry Spencers regex package.

To make use of this implementation, simply call

RegexInterpreterFactory.setInstance(new HSRegexInterpreterFactory());