Skip to content

Unrecognized PCRE extended construction #45

@artelse

Description

@artelse

When try to convert this common regex:
(rxt-pcre-to-elisp "^(?:ISBN(?:-1[03])?:? )?(?=[0-9X]{10}$|(?=(?:[0-9]+[- ]){3})[- 0-9X]{13}$|97[89][0-9]{10}$|(?=(?:[0-9]+[- ]){4})[- 0-9]{17}$)(?:97[89][- ]?)?[0-9]{1,5}[- ]?[0-9]+[- ]?[0-9]+[- ]?[0-9X]$")
The debugger reports:

Debugger entered--Lisp error: (rxt-invalid-regexp "Unrecognized PCRE extended construction `(?='")
  signal(rxt-invalid-regexp ("Unrecognized PCRE extended construction `(?='"))
  rxt-error("Unrecognized PCRE extended construction `(?%c'" 61)

Is this one of the PCRE limitations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions