$string = "hello world"; print $string =~ /^.{1}(.{5})/; #### $string = "hello world"; print $string =~ /^.{!$!}(.{5})/;