Tag Archives: Ruby Regexp-class

Regexp#to_s() : to_s() is a Regexp class method which returns the string containing the regular expression with the same semantics. Syntax: Regexp.to_s() Parameter: Regexp values… Read More
Regexp#inspect() is a Regexp class method which produces a formatted string-version of regualar expression. Syntax: Regexp.inspect() Parameter: Regexp values Return: a formatted string-version of regualar… Read More
Regexp#eql?() : eql?() is a Regexp class method which matches the character in two regular expression. Syntax: Regexp.eql?() Parameter: Regexp values Return: true – if… Read More
Regexp#force_encoding?() : force_encoding?() is a Regexp class method which returns the hash based on the text and options of this regular expression. Syntax: Regexp.hash() Parameter:… Read More
Regexp#fixed_encoding?() : fixed_encoding?() is a Regexp class method which checks whether the regular expression is applicable to a string with any ASCII compatible encoding. Syntax:… Read More
Regexp#encoding() : encoding() is a Regexp class method which returns the encoding value of the regular expressions. Syntax: Regexp.encoding() Parameter: Regexp values Return: encoding value… Read More
Regexp#casefold?() : casefold?() is a Regexp class method which returns the value of the case-insensitive flag of regular expressions. Syntax: Regexp.casefold?() Parameter: Regexp values Return:… Read More
Regexp#=~() : =~() is a Regexp class method which matches a rgular expression against a string. Syntax: Regexp.=~() Parameter: Regexp values Return: true – if… Read More
Regexp#===() : ===() is a Regexp class method which compares the equality of two regular expressions. Syntax: Regexp.===() Parameter: Regexp values Return: true – if… Read More
Regexp#==() : ==() is a Regexp class method which compares two regular expressions. Syntax: Regexp.==() Parameter: Regexp values Return: true – if two regular expressions… Read More
Regexp#quote() : quote() is a Regexp class method which escapes any characters that would have special meaning in a regular expression. Syntax: Regexp.quote() Parameter: Regexp… Read More
Regexp#new() : new() is a Regexp class method which returns a new regular expression pattern. Syntax: Regexp.new() Parameter: Regexp values Return: a new regular expression… Read More
Regexp#compile() : compile() is a Regexp class method which completes a new Regular Expression. Syntax: Regexp.compile() Parameter: Regexp values Return: creates a new Regular Expression.… Read More
Regexp#escape() : escape() is a Regexp class method which returns a new string by escaping any characters that would have special meaning in a regular… Read More
Regexp#options() : options() is a Regexp class method which returns the set of bits corresponding to the options used when creating the Regular Expression. Syntax:… Read More