класс RegexpError
Вызывается при вводе некорректного выражения регулярного выражения.
Regexp.new("?")
вызывает исключение:
RegexpError: target of repeat operator is not specified: /?/
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.