Ruby | Regexp inspect() function
Regexp#inspect() is a Regexp class method which produces a formatted string-version of regular expression. Syntax: Regexp.inspect()Parameter: Regexp valuesReturn: a formatted string-version of regular expression Example #1 : C/C++ Code # Ruby code for Regexp.inspect() method # declaring Regexp value