Hi Guido
Did you try calling unroll_plus(1)? It might help.
On 17/11/17 01:15, Guido Flohr via RT wrote:
Show quoted text> Thu Nov 16 09:15:41 2017: Request 123645 was acted upon.
> Transaction: Ticket created by GUIDO
> Queue: Regexp-Assemble
> Subject: Incorrect handling of "x++x"
> Broken in: 0.38
> Severity: (no value)
> Owner: Nobody
> Requestors: GUIDO@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=123645 >
>
>
> Regexp::Assemble compiles "x++x" into /x+\+x/ but the second plus sign should not be escaped.
>
> The correct regex /x++x/ can never match, but /x+\+x/ matches for example "x+x" or "xxx+x".
>
> A similar problem exists for "x**x". That gets compiled into "x*\*x" which matches "whatever*x". But /x**x/ is syntactically wrong and should not match anything.
>
--
Ron Savage - savage.net.au