Help for this page

Select Code to Download


  1. or download this
    ($name,$num) = ($str =~ /^(\w+)(\d{0,}$/) ;
    
  2. or download this
    ($name, $num) =              # assign string parts to variables
    ($str =~                     # we gonna do regexes!
    ...
      )                          # end of group
      ;                          # a semicolon after end of string
                                 # unexpected end of line?