Project

General

Profile

Actions

Bug #14103

closed

Regexp absense operator has no chance to ^C

Added by shyouhei (Shyouhei Urabe) about 7 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-11-09 trunk 60720) [x86_64-darwin15]
[ruby-core:83750]
Tags:

Description

Following script hangs, with no respond to ^C.

/(?<x> (?<! a ) a+ ){0}
 (?<y> (?~ \g<z> ) ){0}
 (?<z> (?<! a ) \k<x> (?! a ) ){0}
 \g<x> \g<y> \g<z>
/xo =~ (1..1024).map{|x| 'b' + 'a' * x }.join
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0