Ruby | Regexp source() function
Regexp#source() : source() is a Regexp class method which returns the original string of the pattern. Syntax: Regexp.source() Parameter: Regexp values Return: original string of the pattern. Example #1 : Ruby # Ruby code for Regexp.source() method # declaring Regexp value reg_a = /a/ # declaring Reg