RegexpError: target of repeat operator is invalid
Reported by Wilson Bilkovich | June 4th, 2008 @ 02:32 PM | in 1.0 preview
x = /\n(\.\/)?(.*\.rb):[\d]+:\Z?/
# RegexpError: target of repeat operator is invalid: \n(\.\/)?(.*\.rb):[\d]+:\Z?
# from Regexp.new at kernel/core/regexp.rb:72
# from Object#irb_binding {} at (irb):1
Comments and changes to this ticket
-
Wilson Bilkovich June 4th, 2008 @ 03:37 PM
Looks like MRI 1.9 has the same problem:
irb(main):001:0> /\n(\.\/)?(.*\.rb):[\d]+:\Z?/ SyntaxError: (irb):1: target of repeat operator is invalid: /\n(\.\/)?(.*\.rb):[\d]+:\Z?/ from bin/irb:12:in `<main>' irb(main):002:0> -
Ryan Davis June 23rd, 2008 @ 07:13 PM
- → Assigned user changed from to Ryan Davis
-
Charles Oliver Nutter July 16th, 2008 @ 01:31 AM
- → Tag changed from to bug compatibility core regexp
FWIW, JRuby also has the same issue using JOni, the Java Oniguruma port. So it's something inherent in anything Oni-based.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
