Blog

How do you match a string in Ruby?


How do you match a string in Ruby? Ruby | Regexp match() function Regexp#match() : force_encoding?() is a Regexp class method which matches the regular expression with the string and…