Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • re.c

Parent

toggle debugging

RegexpError

Raised when given an invalid regexp expression.

Regexp.new("?")

raises the exception:

RegexpError: target of repeat operator is not specified: /?/