Skip to content

Tag Archives: Ruby Regexp-class

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… Read More
Regexp#names() : names() is a Regexp class method which produces a formatted string-version of regular expression.  Syntax: Regexp.names()Parameter: Regexp valuesReturn: a formatted string-version of regular… Read More
Regexp#named_captures() : named_captures() is a Regexp class method which returns a hash representing information about named captures of regular expression. A key of the hash… Read More
Regexp#match() : force_encoding?() is a Regexp class method which matches the regular expression with the string and specifies the position in the string to begin… Read More

Start Your Coding Journey Now!