shreepads / pdfcrack-mp

OpenMP update with patterns for pdfcrack
GNU General Public License v2.0
38 stars 12 forks source link

Support for patterns with regex-like multi-occurence #4

Closed shreepads closed 9 years ago

shreepads commented 9 years ago

Allow the user to specify a min-max range for the succeeding character expression, e.g. {3,5}[abc] would represent at least 3 occurrences of [abc] and at most 5.

See: https://en.wikipedia.org/wiki/Regular_expression#POSIX_basic_and_extended

This allows for a complete replacement of the Generative method by the Pattern method.

shreepads commented 9 years ago

EDIT: range will apply to the succeeding character expression.

Created branch regexrange for this issue

shreepads commented 9 years ago

Single range done - with tests - in regexrange branch. A little ugly, but works.

This covers the Generative method capability.

Next up - multiple ranges

shreepads commented 9 years ago

Done in regexrange branch. Merging into baseopenmp.