=begin
Meta Characters
12 character ( ) , [ ] , { } , . , ? . + , , ^ , $
To match escape with \
() used for capturing & grouping
[] used as delimiter for character class
{} used to specify interval
, ? , + , are quantifiers
^ Start with
$ Ends with
=end
=begin Meta Characters 12 character ( ) , [ ] , { } , . , ? . + , , ^ , $ To match escape with \ () used for capturing & grouping [] used as delimiter for character class {} used to specify interval , ? , + , are quantifiers ^ Start with $ Ends with =end
p /1 + 2 = 3\?/.match('Does 1 + 2 = 3?')
p /(a+b)/.match("(a+b)")