Help for this page

Select Code to Download


  1. or download this
    print "japhy" =~ /(.)+/;  # prints 'y' ONLY
    
  2. or download this
    ----------------------------------------------------------------------
      (                        group and capture to \1 (1 or more times
    ...
                               quantifier on this capture, only the LAST
                               repetition of the captured pattern will be
                               stored in \1)